Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Alexander Neundorf
On Thursday 12 February 2009, ankit jain wrote: > Hi all, > > If i want to compile through g++ as: > > g++ -Dname=value > > The same if i want to do with cmake how to do it. Whether i need to make > some entry in CMakeCache.txt or somewhere else? This is a lot of documentation available online, wh

Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Mike Jackson
Add_definition(-Dname=value) in your cmakelists.txt file Mike Jackson Sent from my iPod On Feb 12, 2009, at 8:01, ankit jain wrote: Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMake

Re: [CMake] Setting macro while compiling through cmake

2009-02-12 Thread Sergey Rudchenko
ankit jain wrote: Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMakeCache.txt or somewhere else? Ankit See ADD_DEFINITIONS in the CMake manual. -- Best regards, Sergey Rudchenko ___

[CMake] Setting macro while compiling through cmake

2009-02-12 Thread ankit jain
Hi all, If i want to compile through g++ as: g++ -Dname=value The same if i want to do with cmake how to do it. Whether i need to make some entry in CMakeCache.txt or somewhere else? Ankit ___ Powered by www.kitware.com Visit other Kitware open-sourc