From 15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 28 Mar 2006 10:58:14 -0500 Subject: [PATCH] BUG: Pay attention to the MACOSX_BUNDLE target property only on APPLE platforms. --- Source/cmInstallTargetGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 538952f28..be56e9128 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());