diff options
author | Brad King <brad.king@kitware.com> | 2016-10-14 13:02:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-14 13:02:43 (GMT) |
commit | dabd17792215535bdbc0fc5ad032e2a59e7505d2 (patch) | |
tree | 60eac1565e0914792d73a5c01522de55647feac2 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 03622ee2d0947b01a56527ea34cbe43fb9c8eba6 (diff) | |
parent | 20278872e3d8145f4aa81ea6cde01144daa3ca8f (diff) | |
download | CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.zip CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.tar.gz CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.tar.bz2 |
Merge topic 'ninja-framework-POST_BUILD'
20278872 Ninja: Fix POST_BUILD commands on macOS Frameworks
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 34fad9d..d729114 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -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(), |