[CMake] Disabling IF strict checking

Eduardo Alberto Hernández Muñoz coz.eduardo.hernandez at gmail.com
Fri May 23 22:06:09 EDT 2008


Hi list,

I am wondering if there is a way to disable checking that the ELSE and
ENDIF arguments need to the the same as the initial IF. For example,
instead of

   IF ( HUNGRY )
       MESSAGE ( "Go get some food!" )
   ENDIF ( HUNGRY )

you can type

   IF ( HUNGRY )
       MESSAGE ( "Go get some food!" )
   ENDIF ( )

I know that this is meant to catch errors, but I think it's cleaner
this way.

-Coz


More information about the CMake mailing list