[CMake] No-op command?

Philip Semanchuk ond at semanchuk.com
Wed Sep 2 15:12:46 EDT 2015


Hi there,
Does CMake have a no-op command, like 'pass' in Python or ';' in C? I 
sometimes want to create a construct like this:

IF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
     # Under Windows we do nothing because blah blah blah
     ...no-op...
ELSE()
     ...do something...
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Windows")


Thanks
Philip


More information about the CMake mailing list