On Wednesday 20 March 2013, David Cole wrote: > Are you proposing that == behaves as STREQUAL, or as EQUAL?
None of both. It simply compares the strings, no variable lookup. > Similarly, would you propose < and > for numbers only, or for string > comparisons? that's why I didn't add them ;-) So is the safe way to actually always use variables on both sides, and never strings or dereferenced variables ? set(expected_result "Intel") if(CMAKE_CXX_COMPILER_ID STREQUAL expected_result) Alex -- 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers