summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-13 18:09:43 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-13 18:09:43 (GMT)
commita975b21cecc1ce45eeca9dc1b2103268f508317a (patch)
tree434e71591fc358e821fc3cdadbae38b92564e75b /Source
parent2d6fba67804ffcdeb1ca95198aacb326dd8fc4e7 (diff)
parent20278872e3d8145f4aa81ea6cde01144daa3ca8f (diff)
downloadCMake-a975b21cecc1ce45eeca9dc1b2103268f508317a.zip
CMake-a975b21cecc1ce45eeca9dc1b2103268f508317a.tar.gz
CMake-a975b21cecc1ce45eeca9dc1b2103268f508317a.tar.bz2
Merge branch 'ninja-framework-POST_BUILD' into release
Diffstat (limited to 'Source')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 5b56813..cd6dd1a 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -645,7 +645,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"] = ":";
@@ -687,7 +689,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
commandLineLengthLimit, &usedResponseFile);
this->WriteLinkRule(usedResponseFile);
- if (targetOutput != targetOutputReal && !gt.IsFrameworkOnApple()) {
+ if (symlinkNeeded) {
if (targetType == cmState::EXECUTABLE) {
globalGen.WriteBuild(
this->GetBuildFileStream(),