summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-06-14 19:13:47 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2022-06-14 19:27:30 -0400
commit030754a8b3f33291124ef69d21cda7d197602e97 (patch)
treeeac4be0f6b4afcc3d08b580cd365c55d7afff2b4
parent52d47fd4e69fd69c3eb8dc837f137fdc26e2bac7 (diff)
downloadcmake-030754a8b3f33291124ef69d21cda7d197602e97.tar.gz
cmNinjaTargetGenerator: expand CFGIntDir for NMC
-rw-r--r--Source/cmNinjaTargetGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 3fac7f5dcd..4a9396a3ba 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -1616,8 +1616,9 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang,
mod_dir = this->GeneratorTarget->GetFortranModuleDirectory(
this->Makefile->GetHomeOutputDirectory());
} else if (lang == "CXX") {
- mod_dir =
- cmSystemTools::CollapseFullPath(this->GeneratorTarget->ObjectDirectory);
+ mod_dir = this->GetGlobalGenerator()->ExpandCFGIntDir(
+ cmSystemTools::CollapseFullPath(this->GeneratorTarget->ObjectDirectory),
+ config);
}
if (mod_dir.empty()) {
mod_dir = this->Makefile->GetCurrentBinaryDirectory();