From 4871885b9ce79c5d257ba0c2b879405631cd0bb8 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 14 Oct 2014 10:25:32 -0400 Subject: [PATCH] KWIML: Avoid if() quoted auto-dereference When testing CMAKE__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. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a2359cce1..a16b5cdda 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()