mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
INSTALL_NAME_DIR: Add support for generator expressions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user