[CMake] STREQUAL not functioning?

Robert Dailey rcdailey at gmail.com
Thu Oct 6 12:33:45 EDT 2011


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?

---------
Robert Dailey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111006/b470cf6f/attachment.htm>


More information about the CMake mailing list