From a3ac67cc3f8d9b4df9c93f65db28c494c8883811 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 9 Jul 2014 20:01:11 +0200 Subject: [PATCH] OS X: Install CFBundles as complete directories Install CFBundles as directories just like frameworks and application bundles. --- Source/cmInstallTargetGenerator.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 7a39f457d..38d369ea8 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -210,6 +210,20 @@ void cmInstallTargetGenerator::GenerateScriptForConfig(std::ostream& os, // Tweaks apply to the binary inside the bundle. std::string to1 = toDir + targetNameReal; + 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); }