On 11/18/2015 11:26 AM, Ben Boeckel wrote: >> if(test_type STREQUAL "TEST") > > is it triggering on the right-hand "TEST" argument?
Yes. > That's not ambiguous to me; is the if() argument parser misdetecting it? With CMP0054 and CMP0064 set to NEW then set(var TEST) if(var STREQUAL TEST) works as expected. With CMP0054 set to NEW and CMP0064 not set it warns. I do not think it should warn, but looking at the code it would take major refactoring to be able to avoid the false positive. Either way projects should just set CMP0064 to NEW. -Brad -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers