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.
This commit is contained in:
Ben Boeckel authored and Brad King committed 2014-10-14 11:17:04 -04:00
1 parent 3c0bb28162
commit 4871885b9c
1 file changed
+1 -1
+1 -1
View File
@@ -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()