diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-10-14 14:25:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-10-14 15:17:04 (GMT) |
commit | 4871885b9ce79c5d257ba0c2b879405631cd0bb8 (patch) | |
tree | 35e2087167ea5c57fe30e88848c53b3ac17b98c2 | |
parent | 3c0bb28162e1b2d05e913f874dba23b556109a97 (diff) | |
download | CMake-4871885b9ce79c5d257ba0c2b879405631cd0bb8.zip CMake-4871885b9ce79c5d257ba0c2b879405631cd0bb8.tar.gz CMake-4871885b9ce79c5d257ba0c2b879405631cd0bb8.tar.bz2 |
KWIML: Avoid if() quoted auto-dereference
When testing CMAKE_<LANG>_COMPILER_ID values with if(STREQUAL), do not
explicitly dereference or quote the variable. We want if() to
auto-dereference the variable and not its value.
-rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a2359cc..a16b5cd 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,7 +20,7 @@ set_property(DIRECTORY # Suppress printf/scanf format warnings; we test if the sizes match. foreach(lang C CXX) - if(KWIML_LANGUAGE_${lang} AND "${CMAKE_${lang}_COMPILER_ID}" STREQUAL GNU) + if(KWIML_LANGUAGE_${lang} AND CMAKE_${lang}_COMPILER_ID STREQUAL "GNU") set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -Wno-format") endif() endforeach() |