diff options
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index d2c8ccb..6cf30c9 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -282,14 +282,19 @@ cmExportFileGenerator << " PROPERTY ENABLE_EXPORTS 1)\n"; } - // Mark the imported framework. This is done even on non-Apple - // platforms for reference and consistency purposes. - if(target->GetType() == cmTarget::SHARED_LIBRARY && - target->GetPropertyAsBool("FRAMEWORK")) + // Mark the imported library if it is a framework. + if(target->IsFrameworkOnApple()) { os << "SET_PROPERTY(TARGET " << targetName << " PROPERTY FRAMEWORK 1)\n"; } + + // Mark the imported executable if it is an application bundle. + if(target->IsAppBundleOnApple()) + { + os << "SET_PROPERTY(TARGET " << targetName + << " PROPERTY MACOSX_BUNDLE 1)\n"; + } os << "\n"; } |