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.