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 committed 2024-02-14 20:36:47 -05:00
1 parent 940628d48d
commit 363300ace5
1 file changed
+1 -1
+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);
}