summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-06-13 21:48:20 (GMT)
committerBrad King <brad.king@kitware.com>2011-06-13 21:54:36 (GMT)
commit33f5a83a5d7aa4c5a021c33a3fa55069da5eeed8 (patch)
tree1aa2258e7cbde1164230f13e3c2bc3a5aeef5fc2
parent46e3a6c9b9019ac5e23ecf013503d04a8683bbb4 (diff)
downloadCMake-33f5a83a5d7aa4c5a021c33a3fa55069da5eeed8.zip
CMake-33f5a83a5d7aa4c5a021c33a3fa55069da5eeed8.tar.gz
CMake-33f5a83a5d7aa4c5a021c33a3fa55069da5eeed8.tar.bz2
GNU: Fix CMAKE_INCLUDE_SYSTEM_FLAG_<lang> value (#12258)
Fix typo introduced by commit e28c16b4 (Split GNU compiler information files, 2009-12-02). Reported-by: Campbell Barton <ideasman42@gmail.com> Suggested-by: Michael Hertling <mhertling@online.de>
-rw-r--r--Modules/Compiler/GNU.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake
index 0bb31f9..8d6f5df 100644
--- a/Modules/Compiler/GNU.cmake
+++ b/Modules/Compiler/GNU.cmake
@@ -33,6 +33,6 @@ macro(__compiler_gnu lang)
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
if(NOT APPLE)
- set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
+ set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
endif(NOT APPLE)
endmacro()