[CMake] Script Mode
Alexander Neundorf
a.neundorf-work at gmx.net
Thu May 13 15:04:54 EDT 2010
On Thursday 13 May 2010, Benoit Thomas wrote:
> Hello,
>
> Is there any way to know if my code is running script mode (cmake -P) or
> normal mode ? I wanna do something like this:
For a specific case this should be possible.
You should be able to check e.g. whether CMAKE_C_COMPILER (or CXX) is true. Or
whether <YourProjectName>_SOURCE_DIR exists. Or CMAKE_SIZE_OF_VOIDP.
Something like that should work.
Alex
More information about the CMake
mailing list