BUG: Pay attention to the MACOSX_BUNDLE target property only on APPLE platforms.

This commit is contained in:
Brad King 2006-03-28 10:58:14 -05:00
parent 40272a16bd
commit 15f7676a6d
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,8 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
} }
// Handle OSX Bundles. // 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 // Compute the source locations of the bundle executable and
// Info.plist file. // Info.plist file.
@ -134,7 +135,6 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
false); false);
destination += ".app/Contents"; destination += ".app/Contents";
// Install the Info.plist file. // Install the Info.plist file.
this->AddInstallRule(os, destination.c_str(), cmTarget::INSTALL_FILES, this->AddInstallRule(os, destination.c_str(), cmTarget::INSTALL_FILES,
plist.c_str()); plist.c_str());