[CMake] IF how?
klaas.holwerda
ngi at klaasholwerda.nl
Tue Feb 20 17:11:32 EST 2007
Hi,
The myvar is the outcome of something like this:
EXEC_PROGRAM( sh
ARGS "${wxWidgets_CONFIG_EXECUTABLE}" "${CONFIG_TEST}"
"--version"
OUTPUT_VARIABLE wxWidgets_PFVERSION
RETURN_VALUE wxWidgets_WANTED_AVAILABLE
)
IF ( NOT ${wxWidgets_WANTED_AVAILABLE} STREQUAL "0" )
So it will always be there, i am now doing it like the above.
But i am surprised, that it does not work in a simpler form.
Thanks.
Klaas
Brandon J. Van Every wrote:
>
> Try
>
> IF(myvar)
> // blah != 0
> ELSE(myvar)
> // blah == 0
> ENDIF(myvar)
More information about the CMake
mailing list