summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndrew Gilewsky <andrew.gilewsky@gmail.com>2021-03-21 15:10:57 (GMT)
committerBrad King <brad.king@kitware.com>2021-03-22 15:58:44 (GMT)
commit7c4c4f1406f1b4a3d84248e87ce1786ee7a5d0f5 (patch)
treeb82e9a3f622b25101cc7360ec6aaebe79eda1953 /Source/cmake.cxx
parent8f0cbaf2e03d3809f55ad674dbe5543636c0ebc6 (diff)
downloadCMake-7c4c4f1406f1b4a3d84248e87ce1786ee7a5d0f5.zip
CMake-7c4c4f1406f1b4a3d84248e87ce1786ee7a5d0f5.tar.gz
CMake-7c4c4f1406f1b4a3d84248e87ce1786ee7a5d0f5.tar.bz2
Treat '.ixx' and '.cppm' files as C++ sources
These extensions are used by convention for C++ modules and interface units with MSVC.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index b12eeee..55a7feb 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -209,9 +209,9 @@ cmake::cmake(Role role, cmState::Mode mode)
};
// The "c" extension MUST precede the "C" extension.
- setupExts(
- this->CLikeSourceFileExtensions,
- { "c", "C", "c++", "cc", "cpp", "cxx", "cu", "mpp", "m", "M", "mm" });
+ setupExts(this->CLikeSourceFileExtensions,
+ { "c", "C", "c++", "cc", "cpp", "cxx", "cu", "mpp", "m", "M",
+ "mm", "ixx", "cppm" });
setupExts(this->HeaderFileExtensions,
{ "h", "hh", "h++", "hm", "hpp", "hxx", "in", "txx" });
setupExts(this->CudaFileExtensions, { "cu" });