summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-28 15:58:14 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-28 15:58:14 (GMT)
commit15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb (patch)
treeae78e0fd0bdff14f3acee20dc84188350b213b43 /Source
parent40272a16bd99b2a099cb3ef910f6d70c7c3a6f65 (diff)
downloadCMake-15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb.zip
CMake-15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb.tar.gz
CMake-15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb.tar.bz2
BUG: Pay attention to the MACOSX_BUNDLE target property only on APPLE platforms.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmInstallTargetGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index 538952f..be56e91 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -116,7 +116,8 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
}
// Handle OSX Bundles.
- if(this->Target->GetPropertyAsBool("MACOSX_BUNDLE"))
+ if(this->Target->GetMakefile()->IsOn("APPLE") &&
+ this->Target->GetPropertyAsBool("MACOSX_BUNDLE"))
{
// Compute the source locations of the bundle executable and
// Info.plist file.
@@ -134,7 +135,6 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
false);
destination += ".app/Contents";
-
// Install the Info.plist file.
this->AddInstallRule(os, destination.c_str(), cmTarget::INSTALL_FILES,
plist.c_str());