summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-10-28 03:25:49 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-10-28 03:55:39 (GMT)
commit09c962a6a43fecd5d14d3a43654ef9bb5c48a536 (patch)
tree6786de79914a5150061297704235d45d7f554e83 /Source/cmNinjaTargetGenerator.cxx
parente3747a2d4be427e97af01ca1cce1c6641d4dff74 (diff)
downloadCMake-09c962a6a43fecd5d14d3a43654ef9bb5c48a536.zip
CMake-09c962a6a43fecd5d14d3a43654ef9bb5c48a536.tar.gz
CMake-09c962a6a43fecd5d14d3a43654ef9bb5c48a536.tar.bz2
Tests/CXXModules: test forced rsp files with ninja
Fixes: #25367
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 05b6690..dabb078 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1257,8 +1257,6 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
{
cmNinjaBuild scanBuild(ruleName);
- scanBuild.RspFile = "$out.rsp";
-
if (compilePP) {
// Move compilation dependencies to the scan/preprocessing build statement.
std::swap(scanBuild.ExplicitDeps, objBuild.ExplicitDeps);
@@ -1299,6 +1297,7 @@ cmNinjaBuild GetScanBuildStatement(const std::string& ruleName,
// Tell dependency scanner where to store dyndep intermediate results.
std::string ddiFileName = cmStrCat(objectFileName, ".ddi");
scanBuild.Variables["DYNDEP_INTERMEDIATE_FILE"] = ddiFileName;
+ scanBuild.RspFile = cmStrCat(ddiFileName, ".rsp");
// Outputs of the scan/preprocessor build statement.
if (compilePP) {