[CMake] comparing strings
cmake.cmake.narkive.com › 4jrIzJjL › comparing-stringsCmake 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-known among cmake users? For others like me,
string — CMake 3.23.0-rc3 Documentation
cmake.org › cmake › helpWrite a string representation of the current date and/or time to the <output_variable>. If the command is unable to obtain a timestamp, the <output_variable> will be set to the empty string "". The optional UTC flag requests the current date/time representation to be in Coordinated Universal Time (UTC) rather than local time.
[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