[CMake] comparing strings
https://cmake.cmake.narkive.com/4jrIzJjL/comparing-stringsTherefore, STREQUAL can never know the difference between "baz" and baz. So, STREQUAL treats a parameter as a variable name if it is ... For others like me, I'd like this behavior to be emphasized in the cmake docs for STREQUAL. Happy Valentine's. Shaun. Ansis Māliņš 2013-02-14 21:51:19 UTC. ... (COMPARE EQUAL "${build_system}" windows _cmp ...
if — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpBinary tests such as EQUAL, LESS, LESS_EQUAL, GREATER, GREATER_EQUAL, STREQUAL, STRLESS, STRLESS_EQUAL, STRGREATER, STRGREATER_EQUAL, VERSION_EQUAL, VERSION_LESS, VERSION_LESS_EQUAL, VERSION_GREATER, VERSION_GREATER_EQUAL, and MATCHES. Unary logical operator NOT. Binary logical operators AND and OR, from left to right, without any short-circuit.
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] set(a b); set(b c); if(a STREQUAL b OR a STREQUAL c)
cmake.org › pipermail › cmakeSep 04, 2014 · On 04-Sep-14 09:58, Clark Wang wrote: > On Thu, Sep 4, 2014 at 1:44 PM, Clark Wang <dearvoid at gmail.com > <mailto:dearvoid at gmail.com>> wrote: > > On Thu, Sep 4, 2014 at 1:36 PM, Chuck Atkins > <chuck.atkins at kitware.com <mailto:chuck.atkins at kitware.com>> wrote: > > Hi Clark > > The expression inside the if statement has it's variables > dereferenced before evaluating and the non ...
[CMake] comparing strings
cmake.org › pipermail › cmakeFeb 14, 2013 · Cmake commands do not see these >> quotes. Therefore, STREQUAL can never know the difference between "baz" >> and >> baz. >> >> So, STREQUAL treats a parameter as a variable name if it is defined, but >> as >> a string value if it is not. (I verified this in cmIfCommand.cxx) >> >> Is this quote behavior well