diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-04-04 19:31:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-05 14:29:18 (GMT) |
commit | b0fc2993e11fb8b4bcf8a44e6d165f5634ad21bb (patch) | |
tree | 4edc06330f992ba7b4da48408c59daa3156212c0 /Source/cmMakefile.cxx | |
parent | 988f9971006d09d675f8d406367d9021915ef9c0 (diff) | |
download | CMake-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/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 9d37d61..348a06c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1216,9 +1216,10 @@ void cmMakefile::AddCustomCommandOldStyle( }; // Each output must get its own copy of this rule. - cmsys::RegularExpression sourceFiles("\\.(C|M|c|c\\+\\+|cc|cpp|cxx|cu|m|mm|" - "rc|def|r|odl|idl|hpj|bat|h|h\\+\\+|" - "hm|hpp|hxx|in|txx|inl)$"); + cmsys::RegularExpression sourceFiles( + "\\.(C|M|c|c\\+\\+|cc|cpp|cxx|mpp|cu|m|mm|" + "rc|def|r|odl|idl|hpj|bat|h|h\\+\\+|" + "hm|hpp|hxx|in|txx|inl)$"); // Choose whether to use a main dependency. if (sourceFiles.find(source)) { |