[Cmake] BUG: multiple endifs are considered normal

Amitha Perera perera at cs.rpi.edu
Tue Sep 10 00:51:32 EDT 2002


The sequence

IF( OPENGL_glu_LIBRARY )
  MESSAGE( "OKAY" )
ENDIF( OPENGL_glu_LIBRARY )
  MESSAGE( "NOT OKAY" )
ENDIF( OPENGL_glu_LIBRARY )

will execute both message statements when the variable is set, and
only the second when the variable is not set.

(The error: the middle line should be ELSE, not ENDIF.)

Amitha.



More information about the CMake mailing list