diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2013-07-17 05:01:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-22 13:40:11 (GMT) |
commit | 603bc5998f4892996c9b189a2b2f86695e79e96e (patch) | |
tree | d2bdc9cac9602b3737cd53781e04d85e64000b05 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | e645ff0b10567e400c722dfc28c58dc4fd8d181b (diff) | |
download | CMake-603bc5998f4892996c9b189a2b2f86695e79e96e.zip CMake-603bc5998f4892996c9b189a2b2f86695e79e96e.tar.gz CMake-603bc5998f4892996c9b189a2b2f86695e79e96e.tar.bz2 |
OS X: Fix regression handling frameworks for Ninja
Fix a regression created by commit 373faae5 (Refactor how bundles and
frameworks are supported, 2013-05-05).
Since the ninja file isn't aware of how framework symlinks work, we
suppress symlink creation and let cmOSXBundleGenerator handle it. Also,
use the real name of framework library in build rules as was done
before, instead of the symlink.
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 fa7e396..57adeba 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -265,7 +265,8 @@ cmNinjaNormalTargetGenerator rspcontent); } - if (this->TargetNameOut != this->TargetNameReal) { + if (this->TargetNameOut != this->TargetNameReal && + !this->GetTarget()->IsFrameworkOnApple()) { std::string cmakeCommand = this->GetLocalGenerator()->ConvertToOutputFormat( this->GetMakefile()->GetRequiredDefinition("CMAKE_COMMAND"), @@ -599,7 +600,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() rspfile, commandLineLengthLimit); - if (targetOutput != targetOutputReal) { + if (targetOutput != targetOutputReal && + !this->GetTarget()->IsFrameworkOnApple()) { if (targetType == cmTarget::EXECUTABLE) { globalGenerator->WriteBuild(this->GetBuildFileStream(), "Create executable symlink " + targetOutput, |