mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
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:
1 parent
940628d48d
commit
363300ace5
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user