diff options
author | Eugene Shalygin <eugene.shalygin@gmail.com> | 2021-07-20 18:08:17 (GMT) |
---|---|---|
committer | Eugene Shalygin <eugene.shalygin@gmail.com> | 2021-07-22 11:08:58 (GMT) |
commit | 55e4753bbb60c0da12b09837bac97a46b851ae32 (patch) | |
tree | 392f9c7e46d7b45c95c60f7ce7b5a92fa0831623 /Source/cmExportFileGenerator.cxx | |
parent | 26a76cf46d5209aec03d941fee203d23172dde75 (diff) | |
download | CMake-55e4753bbb60c0da12b09837bac97a46b851ae32.zip CMake-55e4753bbb60c0da12b09837bac97a46b851ae32.tar.gz CMake-55e4753bbb60c0da12b09837bac97a46b851ae32.tar.bz2 |
Refactor cmTargetExport removing InterfaceIncludeDirecories
Because of this property in the cmTargetExport struct, exporting targets
is not uniform: top-level ones have to be dealt with via the
cmTargetExport objects, while all linked ones are cmGeneratorTarget
objects. Let's pass this additional includedirectories via a special
target property making handling exported targets uniform.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index c69d484..2c54077 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -378,7 +378,8 @@ void cmExportFileGenerator::PopulateIncludeDirectoriesInterface( cmGeneratorExpression ge; std::string dirs = cmGeneratorExpression::Preprocess( - tei->InterfaceIncludeDirectories, preprocessRule, true); + cmJoin(target->Target->GetInstallIncludeDirectoriesEntries(), ";"), + preprocessRule, true); this->ReplaceInstallPrefix(dirs); std::unique_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(dirs); std::string exportDirs = |