summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-14 13:37:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-14 13:37:54 (GMT)
commit5fc50479bfb13e5ed181aff9dde7aa739deada84 (patch)
tree9567e1e50dd916da6e35659cca3cac773c2a10d8 /Source/cmInstallTargetGenerator.cxx
parent47bf22e121947169af53acbe89a30ff48fd2d75e (diff)
parenta3ac67cc3f8d9b4df9c93f65db28c494c8883811 (diff)
downloadCMake-5fc50479bfb13e5ed181aff9dde7aa739deada84.zip
CMake-5fc50479bfb13e5ed181aff9dde7aa739deada84.tar.gz
CMake-5fc50479bfb13e5ed181aff9dde7aa739deada84.tar.bz2
Merge topic 'install-cfbundle-directory'
a3ac67cc OS X: Install CFBundles as complete directories
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index 85df91d..8a1c53e 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -215,6 +215,20 @@ void cmInstallTargetGenerator::GenerateScriptForConfig(std::ostream& os,
filesFrom.push_back(from1);
filesTo.push_back(to1);
}
+ else if(this->Target->IsCFBundleOnApple())
+ {
+ // Install the whole app bundle directory.
+ type = cmInstallType_DIRECTORY;
+ literal_args += " USE_SOURCE_PERMISSIONS";
+
+ std::string targetNameBase = targetName.substr(0, targetName.find('/'));
+
+ std::string from1 = fromDirConfig + targetNameBase;
+ std::string to1 = toDir + targetName;
+
+ filesFrom.push_back(from1);
+ filesTo.push_back(to1);
+ }
else
{
bool haveNamelink = false;