summaryrefslogtreecommitdiffstats
path: root/Source/cmExportInstallFileGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-11-01 21:37:59 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-11-04 17:01:05 (GMT)
commit3c85f11fedf55c5072cd00deb129a0782130d78c (patch)
tree7e3f97d3052b8edff775467c01d36124706d009c /Source/cmExportInstallFileGenerator.cxx
parent2ec1156b80485fedba5b6d9b0802c21e1cbc2d8f (diff)
downloadCMake-3c85f11fedf55c5072cd00deb129a0782130d78c.zip
CMake-3c85f11fedf55c5072cd00deb129a0782130d78c.tar.gz
CMake-3c85f11fedf55c5072cd00deb129a0782130d78c.tar.bz2
INSTALL_NAME_DIR: Add support for generator expressions
Diffstat (limited to 'Source/cmExportInstallFileGenerator.cxx')
-rw-r--r--Source/cmExportInstallFileGenerator.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx
index 090e30f..987ec9e 100644
--- a/Source/cmExportInstallFileGenerator.cxx
+++ b/Source/cmExportInstallFileGenerator.cxx
@@ -517,13 +517,14 @@ void cmExportInstallFileGenerator::ComplainAboutMissingTarget(
}
std::string cmExportInstallFileGenerator::InstallNameDir(
- cmGeneratorTarget* target, const std::string& /*config*/)
+ cmGeneratorTarget* target, const std::string& config)
{
std::string install_name_dir;
cmMakefile* mf = target->Target->GetMakefile();
if (mf->IsOn("CMAKE_PLATFORM_HAS_INSTALLNAME")) {
- install_name_dir = target->GetInstallNameDirForInstallTree();
+ install_name_dir =
+ target->GetInstallNameDirForInstallTree(config, "${_IMPORT_PREFIX}");
}
return install_name_dir;