cxxmodules: depend on the modmap contents

If the modmap changes, we need to recompile. It is not just a file that
needs to exist to compile.

Fixes: #25511
This commit is contained in:
Ben Boeckel
2024-02-13 14:32:34 -05:00
parent 940628d48d
commit 363300ace5
+1 -1
View File
@@ -1600,7 +1600,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement(
// corresponding file path.
std::string ddModmapFile = cmStrCat(objectFileName, ".modmap");
vars["DYNDEP_MODULE_MAP_FILE"] = ddModmapFile;
objBuild.OrderOnlyDeps.push_back(ddModmapFile);
objBuild.ImplicitDeps.push_back(ddModmapFile);
scanningFiles.ModuleMapFile = std::move(ddModmapFile);
}