[CMake] Script Mode

Benoit Thomas benoit.thomas at gameloft.com
Thu May 13 11:41:59 EDT 2010


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:

if (CMAKE_IS_RUNNING_IN_SCRIPT_MODE)
     # do some special stuff
else()
     # do the normal stuff
endif()

Thank you,
-- 
Ben.



More information about the CMake mailing list