Skip to content

set_property: Deduplicate source file directory scopes

alcroito requested to merge alcroito/cmake:source_file_props_dedup_scopes into master

A user could specify the same directory scope to set_property() multiple times, which in conjunction with APPEND would append the property multiple times.

Make sure to deduplicate scopes across both DIRECTORY and TARGET_DIRECTORY options, so that a property is only appended once in such a scenario.

Fixes: #20941 (closed)
Backport: release

Edited by Brad King

Merge request reports