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)

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to