mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Convert: Inline uses of START_OUTPUT
This commit is contained in:
@@ -312,17 +312,25 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
// arguments.
|
||||
std::string targetOutPathPDB = this->LocalGenerator->ConvertToOutputFormat(
|
||||
targetFullPathPDB, cmOutputConverter::SHELL);
|
||||
std::string targetOutPath = this->Convert(
|
||||
targetFullPath, cmOutputConverter::START_OUTPUT, cmOutputConverter::SHELL);
|
||||
std::string targetOutPathSO =
|
||||
this->Convert(targetFullPathSO, cmOutputConverter::START_OUTPUT,
|
||||
cmOutputConverter::SHELL);
|
||||
std::string targetOutPathReal =
|
||||
this->Convert(targetFullPathReal, cmOutputConverter::START_OUTPUT,
|
||||
cmOutputConverter::SHELL);
|
||||
|
||||
std::string targetOutPath = this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), targetFullPath),
|
||||
cmOutputConverter::SHELL);
|
||||
std::string targetOutPathSO = this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), targetFullPathSO),
|
||||
cmOutputConverter::SHELL);
|
||||
std::string targetOutPathReal = this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), targetFullPathReal),
|
||||
cmOutputConverter::SHELL);
|
||||
std::string targetOutPathImport =
|
||||
this->Convert(targetFullPathImport, cmOutputConverter::START_OUTPUT,
|
||||
cmOutputConverter::SHELL);
|
||||
this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(),
|
||||
targetFullPathImport),
|
||||
cmOutputConverter::SHELL);
|
||||
|
||||
this->NumberOfProgressActions++;
|
||||
if (!this->NoRuleMessages) {
|
||||
@@ -536,14 +544,20 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules(
|
||||
vars.Language = linkLanguage.c_str();
|
||||
vars.Objects = buildObjs.c_str();
|
||||
std::string objectDir = this->GeneratorTarget->GetSupportDirectory();
|
||||
objectDir = this->Convert(objectDir, cmOutputConverter::START_OUTPUT,
|
||||
cmOutputConverter::SHELL);
|
||||
|
||||
objectDir = this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), objectDir),
|
||||
cmOutputConverter::SHELL);
|
||||
|
||||
vars.ObjectDir = objectDir.c_str();
|
||||
cmOutputConverter::OutputFormat output = (useWatcomQuote)
|
||||
? cmOutputConverter::WATCOMQUOTE
|
||||
: cmOutputConverter::SHELL;
|
||||
std::string target = this->Convert(
|
||||
targetFullPathReal, cmOutputConverter::START_OUTPUT, output);
|
||||
std::string target = this->LocalGenerator->ConvertToOutputFormat(
|
||||
this->LocalGenerator->ConvertToRelativePath(
|
||||
this->LocalGenerator->GetCurrentBinaryDirectory(), targetFullPathReal),
|
||||
output);
|
||||
vars.Target = target.c_str();
|
||||
vars.LinkLibraries = linkLibs.c_str();
|
||||
vars.ObjectsQuoted = buildObjs.c_str();
|
||||
|
||||
Reference in New Issue
Block a user