summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-11 13:24:24 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-11 13:24:24 (GMT)
commit3709389520f091de10e2c1b7fb8350bacc3a0fb0 (patch)
tree82f6715424de85c4009d172d7b7cee5523601329 /Modules
parent3e05637280e77d991f2270d13cead0343b13d029 (diff)
parent806e01d638195905b1973c031ef71a4125f50376 (diff)
downloadCMake-3709389520f091de10e2c1b7fb8350bacc3a0fb0.zip
CMake-3709389520f091de10e2c1b7fb8350bacc3a0fb0.tar.gz
CMake-3709389520f091de10e2c1b7fb8350bacc3a0fb0.tar.bz2
Merge branch 'objc-c++flags' into release-3.16
Merge-request: !3904
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeCXXCompiler.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCXXCompiler.cmake.in b/Modules/CMakeCXXCompiler.cmake.in
index ef65021..efb8abf 100644
--- a/Modules/CMakeCXXCompiler.cmake.in
+++ b/Modules/CMakeCXXCompiler.cmake.in
@@ -45,7 +45,7 @@ set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
-foreach (lang OBJC OBJCXX)
+foreach (lang C OBJC OBJCXX)
if (CMAKE_${lang}_COMPILER_ID_RUN)
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})