mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 10:00:12 -05:00
cmGlobalVisualStudioGenerator: simplify target dir construction
The components checked for `.empty()` are never actually empty.
This commit is contained in:
@@ -225,18 +225,9 @@ void cmGlobalVisualStudioGenerator::AddExtraIDETargets()
|
||||
void cmGlobalVisualStudioGenerator::ComputeTargetObjectDirectory(
|
||||
cmGeneratorTarget* gt) const
|
||||
{
|
||||
std::string dir =
|
||||
cmStrCat(gt->LocalGenerator->GetCurrentBinaryDirectory(), '/');
|
||||
std::string tgtDir = gt->LocalGenerator->GetTargetDirectory(gt);
|
||||
if (!tgtDir.empty()) {
|
||||
dir += tgtDir;
|
||||
dir += '/';
|
||||
}
|
||||
char const* cd = this->GetCMakeCFGIntDir();
|
||||
if (cd && *cd) {
|
||||
dir += cd;
|
||||
dir += '/';
|
||||
}
|
||||
std::string dir = cmStrCat(gt->LocalGenerator->GetCurrentBinaryDirectory(),
|
||||
'/', gt->LocalGenerator->GetTargetDirectory(gt),
|
||||
'/', this->GetCMakeCFGIntDir(), '/');
|
||||
gt->ObjectDirectory = dir;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user