mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
Pre-compute and store target object directory in cmGeneratorTarget
Add cmGeneratorTarget::ObjectDirectory member to hold the value. In ComputeTargetObjects set the value to the full path to the target object directory including any necessary placeholder for the configuration name.
This commit is contained in:
@@ -139,6 +139,22 @@ cmGlobalVisualStudioGenerator
|
||||
}
|
||||
gt->Objects[sf] = objectName;
|
||||
}
|
||||
|
||||
std::string dir = gt->Makefile->GetCurrentOutputDirectory();
|
||||
dir += "/";
|
||||
std::string tgtDir = lg->GetTargetDirectory(*gt->Target);
|
||||
if(!tgtDir.empty())
|
||||
{
|
||||
dir += tgtDir;
|
||||
dir += "/";
|
||||
}
|
||||
const char* cd = this->GetCMakeCFGIntDir();
|
||||
if(cd && *cd)
|
||||
{
|
||||
dir += cd;
|
||||
dir += "/";
|
||||
}
|
||||
gt->ObjectDirectory = dir;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user