summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-04-04 19:31:56 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-05 14:29:18 (GMT)
commitb0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb (patch)
tree4edc06330f992ba7b4da48408c59daa3156212c0 /Source/cmSourceFile.h
parent988f9971006d09d675f8d406367d9021915ef9c0 (diff)
downloadCMake-b0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb.zip
CMake-b0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb.tar.gz
CMake-b0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb.tar.bz2
Treat the '.mpp' file extension as C++ code
This is the extension required in build2 for C++ module support.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 94b5cc8..76a5ded 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -175,7 +175,7 @@ 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|cxx|cu|f|f90|for|fpp|ftn|m|mm|" \
+ "\\.(C|F|M|c|c\\+\\+|cc|cpp|mpp|cxx|cu|f|f90|for|fpp|ftn|m|mm|" \
"rc|def|r|odl|idl|hpj|bat)$"
#define CM_PCH_REGEX "cmake_pch(_[^.]+)?\\.(h|hxx)$"