summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-08-31 15:53:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-12-02 18:01:21 (GMT)
commit21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3 (patch)
tree4347424a86a7e8e6fb39faedd425676f22ceb849 /Source/cmGlobalNinjaGenerator.cxx
parent9c662246684bf649899228d02705440fa4480558 (diff)
downloadCMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.zip
CMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.tar.gz
CMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.tar.bz2
cmCxxModuleMapper: support the `clang` module map format
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 4500f33..f7753da 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -2567,6 +2567,8 @@ bool cmGlobalNinjaGenerator::WriteDyndepFile(
cm::optional<CxxModuleMapFormat> modmap_fmt;
if (arg_modmapfmt.empty()) {
// nothing to do.
+ } else if (arg_modmapfmt == "clang") {
+ modmap_fmt = CxxModuleMapFormat::Clang;
} else if (arg_modmapfmt == "gcc") {
modmap_fmt = CxxModuleMapFormat::Gcc;
} else if (arg_modmapfmt == "msvc") {