mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -06:00
CUDA: Makefile uses relative path for device linking status messages
This commit is contained in:
@@ -122,7 +122,11 @@ void cmMakefileExecutableTargetGenerator::WriteDeviceExecutableRule(
|
|||||||
std::string buildEcho = "Linking ";
|
std::string buildEcho = "Linking ";
|
||||||
buildEcho += linkLanguage;
|
buildEcho += linkLanguage;
|
||||||
buildEcho += " device code ";
|
buildEcho += " device code ";
|
||||||
buildEcho += targetOutputReal;
|
buildEcho += this->LocalGenerator->ConvertToOutputFormat(
|
||||||
|
this->LocalGenerator->MaybeConvertToRelativePath(
|
||||||
|
this->LocalGenerator->GetCurrentBinaryDirectory(),
|
||||||
|
this->DeviceLinkObject),
|
||||||
|
cmOutputConverter::SHELL);
|
||||||
this->LocalGenerator->AppendEcho(
|
this->LocalGenerator->AppendEcho(
|
||||||
commands, buildEcho, cmLocalUnixMakefileGenerator3::EchoLink, &progress);
|
commands, buildEcho, cmLocalUnixMakefileGenerator3::EchoLink, &progress);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,8 +292,12 @@ void cmMakefileLibraryTargetGenerator::WriteDeviceLibraryRules(
|
|||||||
cmLocalUnixMakefileGenerator3::EchoProgress progress;
|
cmLocalUnixMakefileGenerator3::EchoProgress progress;
|
||||||
this->MakeEchoProgress(progress);
|
this->MakeEchoProgress(progress);
|
||||||
// Add the link message.
|
// Add the link message.
|
||||||
std::string buildEcho = "Linking " + linkLanguage + " device code";
|
std::string buildEcho = "Linking " + linkLanguage + " device code ";
|
||||||
buildEcho += targetOutputReal;
|
buildEcho += this->LocalGenerator->ConvertToOutputFormat(
|
||||||
|
this->LocalGenerator->MaybeConvertToRelativePath(
|
||||||
|
this->LocalGenerator->GetCurrentBinaryDirectory(),
|
||||||
|
this->DeviceLinkObject),
|
||||||
|
cmOutputConverter::SHELL);
|
||||||
this->LocalGenerator->AppendEcho(
|
this->LocalGenerator->AppendEcho(
|
||||||
commands, buildEcho, cmLocalUnixMakefileGenerator3::EchoLink, &progress);
|
commands, buildEcho, cmLocalUnixMakefileGenerator3::EchoLink, &progress);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user