mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 19:19:32 -05: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:
@@ -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