diff options
author | Brad King <brad.king@kitware.com> | 2023-03-09 16:37:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-03-09 19:36:01 (GMT) |
commit | 45d1925efc5ed19066d179ed15bfbcb6ae31ae9a (patch) | |
tree | 35e572920eb7fcf5305f28d056b231309740dfef /Source/cmake.cxx | |
parent | 8c96d145c1f9b5431643403caad9264a5b9e1402 (diff) | |
download | CMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.zip CMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.tar.gz CMake-45d1925efc5ed19066d179ed15bfbcb6ae31ae9a.tar.bz2 |
Treat '.ccm', '.cxxm', and '.c++m' files as C++ sources
These extensions are used by convention for C++ module interface units
with Clang.
For now, do not add any tests using these extensions.
Very few compilers recognize them as C++ sources.
Tests can be added later as part of C++ modules support.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index dbf961d..d4bbc14 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -335,7 +335,7 @@ cmake::cmake(Role role, cmState::Mode mode, cmState::ProjectKind projectKind) // The "c" extension MUST precede the "C" extension. setupExts(this->CLikeSourceFileExtensions, { "c", "C", "c++", "cc", "cpp", "cxx", "cu", "mpp", "m", "M", - "mm", "ixx", "cppm" }); + "mm", "ixx", "cppm", "ccm", "cxxm", "c++m" }); setupExts(this->HeaderFileExtensions, { "h", "hh", "h++", "hm", "hpp", "hxx", "in", "txx" }); setupExts(this->CudaFileExtensions, { "cu" }); |