1 2 3 4 5
if("NOT" 1) message(FATAL_ERROR "[\"NOT\" 1] evaluated true") elseif("DEFINED" NotDefined) message(FATAL_ERROR "[\"DEFINED\" NotDefined] evaluated true") endif()