mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 20:00:51 -05:00
Merge topic 'ninja-framework-POST_BUILD'
20278872 Ninja: Fix POST_BUILD commands on macOS Frameworks
This commit is contained in:
@@ -652,7 +652,9 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||
std::string postBuildCmdLine = localGen.BuildCommandLine(postBuildCmdLines);
|
||||
|
||||
cmNinjaVars symlinkVars;
|
||||
if (targetOutput == targetOutputReal) {
|
||||
bool const symlinkNeeded =
|
||||
(targetOutput != targetOutputReal && !gt.IsFrameworkOnApple());
|
||||
if (!symlinkNeeded) {
|
||||
vars["POST_BUILD"] = postBuildCmdLine;
|
||||
} else {
|
||||
vars["POST_BUILD"] = ":";
|
||||
@@ -694,7 +696,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
|
||||
commandLineLengthLimit, &usedResponseFile);
|
||||
this->WriteLinkRule(usedResponseFile);
|
||||
|
||||
if (targetOutput != targetOutputReal && !gt.IsFrameworkOnApple()) {
|
||||
if (symlinkNeeded) {
|
||||
if (targetType == cmState::EXECUTABLE) {
|
||||
globalGen.WriteBuild(
|
||||
this->GetBuildFileStream(),
|
||||
|
||||
Reference in New Issue
Block a user