diff options
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index 8266a96..f378106 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -158,8 +158,9 @@ cmExportInstallFileGenerator te->LibraryGenerator, properties); this->SetImportLocationProperty(config, suffix, te->RuntimeGenerator, properties); + this->SetImportLocationProperty(config, suffix, + te->FrameworkGenerator, properties); - // TODO: Frameworks? // TODO: Bundles? // If any file location was set for the target add it to the @@ -223,7 +224,15 @@ cmExportInstallFileGenerator value += "/"; // Append the installed file name. - value += itgen->GetInstallFilename(config); + std::string fname = itgen->GetInstallFilename(config); + value += fname; + + // Fix name for frameworks. + if(itgen->GetTarget()->IsFrameworkOnApple()) + { + value += ".framework/"; + value += fname; + } // Store the property. properties[prop] = value; |