[CMake] STREQUAL not functioning?
Eric Noulard
eric.noulard at gmail.com
Thu Oct 6 14:31:19 EDT 2011
2011/10/6 Robert Dailey <rcdailey at gmail.com>:
> According to the CMake documentation, the `STREQUAL` comparison is allowed
> to take either a VARIABLE or a STRING as either parameter. So, in this
> example below, the message does NOT print, which is broken:
> set( FUBARTEST "OK" )
> if( FUBARTEST STREQUAL "OK" )
> message( "It Worked" )
> endif()
> Any reason why this isn't working as documented?
Don't know but it works just fine for on Linux + CMake 2.8.6
which cmake version are you using?
Could you try running
cmake --trace --debug-output -P fubartest.cmake
and tell us waht's printed out?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list