[CMake] Setting macro while compiling through cmake

Mike Jackson mike.jackson at bluequartz.net
Thu Feb 12 08:18:12 EST 2009


Add_definition(-Dname=value) in your cmakelists.txt file

Mike Jackson


Sent from my iPod

On Feb 12, 2009, at 8:01, ankit jain <ankitguddu at gmail.com> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list