diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-06-14 23:13:47 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-06-14 23:27:30 (GMT) |
commit | 030754a8b3f33291124ef69d21cda7d197602e97 (patch) | |
tree | eac4be0f6b4afcc3d08b580cd365c55d7afff2b4 /Source/cmNinjaTargetGenerator.cxx | |
parent | 52d47fd4e69fd69c3eb8dc837f137fdc26e2bac7 (diff) | |
download | CMake-030754a8b3f33291124ef69d21cda7d197602e97.zip CMake-030754a8b3f33291124ef69d21cda7d197602e97.tar.gz CMake-030754a8b3f33291124ef69d21cda7d197602e97.tar.bz2 |
cmNinjaTargetGenerator: expand CFGIntDir for NMC
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 3fac7f5..4a9396a 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(); |