diff options
Diffstat (limited to 'Source/cmExportBuildFileGenerator.cxx')
-rw-r--r-- | Source/cmExportBuildFileGenerator.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmExportBuildFileGenerator.cxx b/Source/cmExportBuildFileGenerator.cxx index 568ce89..9ed2880 100644 --- a/Source/cmExportBuildFileGenerator.cxx +++ b/Source/cmExportBuildFileGenerator.cxx @@ -181,6 +181,9 @@ cmExportBuildFileGenerator // Get the makefile in which to lookup target information. cmMakefile* mf = target->GetMakefile(); + cmGeneratorTarget* gtgt = + mf->GetGlobalGenerator()->GetGeneratorTarget(target); + // Add the main target file. { std::string prop = "IMPORTED_LOCATION"; @@ -188,11 +191,11 @@ cmExportBuildFileGenerator std::string value; if(target->IsAppBundleOnApple()) { - value = target->GetFullPath(config, false); + value = gtgt->GetFullPath(config, false); } else { - value = target->GetFullPath(config, false, true); + value = gtgt->GetFullPath(config, false, true); } properties[prop] = value; } @@ -209,7 +212,7 @@ cmExportBuildFileGenerator { std::string prop = "IMPORTED_IMPLIB"; prop += suffix; - std::string value = target->GetFullPath(config, true); + std::string value = gtgt->GetFullPath(config, true); target->GetImplibGNUtoMS(value, value, "${CMAKE_IMPORT_LIBRARY_SUFFIX}"); properties[prop] = value; |