build: add_mp_units_module now use HEADER_SET

This commit is contained in:
Mateusz Pusz
2024-01-06 08:51:01 +01:00
parent 39a66d2c6b
commit 047b8a140a
2 changed files with 14 additions and 7 deletions

View File

@ -43,7 +43,7 @@ function(get_target_sources target paths_out)
list(APPEND targets ${target})
foreach(t ${targets})
get_target_property(sources ${t} SOURCES)
get_target_property(sources ${t} HEADER_SET)
if(sources)
get_target_property(source_dir ${t} SOURCE_DIR)
foreach(f ${sources})