summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-10-14 10:25:32 -0400
committerBrad King <brad.king@kitware.com>2014-10-14 11:17:04 -0400
commit4871885b9ce79c5d257ba0c2b879405631cd0bb8 (patch)
tree35e2087167ea5c57fe30e88848c53b3ac17b98c2
parent3c0bb28162e1b2d05e913f874dba23b556109a97 (diff)
downloadcmake-4871885b9ce79c5d257ba0c2b879405631cd0bb8.tar.gz
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.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index a2359cce11..a16b5cddad 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()