if — CMake 3.23.0-rc3 Documentation
https://cmake.org › latest › commandUnary tests such as EXISTS, COMMAND, and DEFINED. Binary tests such as EQUAL, LESS, LESS_EQUAL, GREATER, GREATER_EQUAL, STREQUAL, STRLESS, STRLESS_EQUAL, ...
CMake's STREQUAL not working - Stack Overflow
stackoverflow.com › questions › 7677305Oct 06, 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? cmake