Skip to content

install(TARGETS): Restore per-export INCLUDES DESTINATION

Eugene Shalygin requested to merge eugene.shalygin/cmake:issue-23183 into master

Make target IncludeDirectoriesEntries be defined per export target.

Convert the IncludeDirectoriesEntries vector to a map and modify access function to store the directories lists with respect to cmExportTarget object. This fixes error when the same target is exported more than once via different exports and each for consequent export its include directories list grows. Add a test for this case.

Fixes: #23183 (closed)
Backport: release
Topic-rename: restore-target-export-includes

Edited by Brad King

Merge request reports