Cmake conditionals
From wikinotes
If Statement
IF(<expr>)
ELSEIF(<expr>)
ELSE(<expr>)
ENDIF(<expr>)
# =======
# Example
# =======
IF( 1 EQUALS 2 )
MESSAGE( "1 is equal to 2" )
ENDIF( 1 EQUALS 2 )
See Also cmake expressions
IF(<expr>)
ELSEIF(<expr>)
ELSE(<expr>)
ENDIF(<expr>)
# =======
# Example
# =======
IF( 1 EQUALS 2 )
MESSAGE( "1 is equal to 2" )
ENDIF( 1 EQUALS 2 )
See Also cmake expressions