diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-06 16:30:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-27 19:59:02 (GMT) |
commit | ec38e4c84faa276e664f950b417a71c3901485f6 (patch) | |
tree | 7d7a85fcee40d9f950344f07ea4af5480a05e213 /Source/cmExportBuildFileGenerator.cxx | |
parent | dfb025bf126080f6bb209f6f40ff909c4f5c5c97 (diff) | |
download | CMake-ec38e4c84faa276e664f950b417a71c3901485f6.zip CMake-ec38e4c84faa276e664f950b417a71c3901485f6.tar.gz CMake-ec38e4c84faa276e664f950b417a71c3901485f6.tar.bz2 |
Move GetFullPath to cmGeneratorTarget
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; |