summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2024-02-13 19:32:34 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2024-02-15 01:36:47 (GMT)
commit363300ace5e2cf63835d5797be951dbc95b3f55e (patch)
treec65f0d5f1f317e6a6a3abfbac45535bb273ab32c
parent940628d48deb53a3a79d07e3e6e22cf405021543 (diff)
downloadCMake-363300ace5e2cf63835d5797be951dbc95b3f55e.zip
CMake-363300ace5e2cf63835d5797be951dbc95b3f55e.tar.gz
CMake-363300ace5e2cf63835d5797be951dbc95b3f55e.tar.bz2
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
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 1d90194..99aa7f2 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -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);
}