Skip to content

set_source_files_properties: Allow specification of directory scope

alcroito requested to merge alcroito/cmake:source_file_scopes into master

Both set_source_files_properties() and set_property(SOURCE) now accept two new optional arguments: DIRECTORY and TARGET_DIRECTORY.

The DIRECTORY option takes a list of relative or absolute paths pointing to processed source directories. These paths specify directory scopes where the source file properties will be set (previously the scope was always the currently processed source directory).

Similarly TARGET_DIRECTORY takes a list of targets, whose source directories will be used as the list of scopes where to set the source file properties.

Fixes: #20128 (closed)

Edited by alcroito

Merge request reports