2011/10/6 Robert Dailey <rcdai...@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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake