mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
BUG: Fix LOCATION property for Mac AppBundles
Previously cmTarget::GetLocation and cmTarget::GetFullPath would return for Mac AppBundles the top-level bundle directory but without the .app extension. We worked around this at the call sites. This fixes the methods and removes the work-arounds. See issue #8406.
This commit is contained in:
@@ -106,16 +106,10 @@ cmExportBuildFileGenerator
|
||||
std::string prop = "IMPORTED_LOCATION";
|
||||
prop += suffix;
|
||||
std::string value;
|
||||
if(target->IsFrameworkOnApple())
|
||||
if(target->IsFrameworkOnApple() || target->IsAppBundleOnApple())
|
||||
{
|
||||
value = target->GetFullPath(config, false);
|
||||
}
|
||||
else if(target->IsAppBundleOnApple())
|
||||
{
|
||||
value = target->GetFullPath(config, false);
|
||||
value += ".app/Contents/MacOS/";
|
||||
value += target->GetFullName(config, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
value = target->GetFullPath(config, false, true);
|
||||
|
||||
Reference in New Issue
Block a user