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/cmSourceFile.h | |
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/cmSourceFile.h')
-rw-r--r-- | Source/cmSourceFile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index c1c5201..9308af4 100644 --- a/Source/cmSourceFile.h +++ b/Source/cmSourceFile.h @@ -183,8 +183,8 @@ private: #define CM_HEADER_REGEX "\\.(h|hh|h\\+\\+|hm|hpp|hxx|in|txx|inl)$" #define CM_SOURCE_REGEX \ - "\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|ixx|cppm|cu|f|f90|for|fpp|ftn|m|mm|" \ - "rc|def|r|odl|idl|hpj|bat)$" + "\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|ixx|cppm|ccm|cxxm|c\\+\\+m|cu" \ + "|f|f90|for|fpp|ftn|m|mm|rc|def|r|odl|idl|hpj|bat)$" #define CM_PCH_REGEX "cmake_pch(_[^.]+)?\\.(h|hxx)$" |