summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-03 13:56:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-03 13:56:32 (GMT)
commitb0759da303ebf8a49cb840504591c92fd290f419 (patch)
treebdf08b3919b5c068e51fef9040ac05432e2481d4 /Source/cmGlobalXCodeGenerator.cxx
parent800e764e8047e194cb5532b6528104a16f83bd8f (diff)
parent373faae5e1c936351b143b0561c61ef9884303e1 (diff)
downloadCMake-b0759da303ebf8a49cb840504591c92fd290f419.zip
CMake-b0759da303ebf8a49cb840504591c92fd290f419.tar.gz
CMake-b0759da303ebf8a49cb840504591c92fd290f419.tar.bz2
Merge topic 'framework-refactor'
373faae Refactor how bundles and frameworks are supported.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index bb1e792..7fcb630 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1821,6 +1821,11 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
pndir = target.GetDirectory(configName);
}
+ if(target.IsFrameworkOnApple())
+ {
+ pnprefix = "";
+ }
+
buildSettings->AddAttribute("EXECUTABLE_PREFIX",
this->CreateString(pnprefix.c_str()));
buildSettings->AddAttribute("EXECUTABLE_SUFFIX",
@@ -2154,14 +2159,14 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
if(target.GetType() == cmTarget::SHARED_LIBRARY)
{
// Get the install_name directory for the build tree.
- install_name_dir = target.GetInstallNameDirForBuildTree(configName, true);
+ install_name_dir = target.GetInstallNameDirForBuildTree(configName);
if(install_name_dir.empty())
{
// Xcode will not pass the -install_name option at all if INSTALL_PATH
// is not given or is empty. We must explicitly put the flag in the
// link flags to create an install_name with just the library soname.
extraLinkOptions += " -install_name ";
- extraLinkOptions += target.GetFullName(configName);
+ extraLinkOptions += target.GetSOName(configName);
}
else
{