mirror of
https://github.com/rwengine/openrw.git
synced 2024-10-06 09:07:19 +02:00
cmake: let sources depend on the iwyu mapping file
This commit is contained in:
parent
e60fd6af6b
commit
590509037c
@ -25,5 +25,10 @@ if(INCLUDEWHATYOUUSE_FOUND)
|
||||
CXX_INCLUDE_WHAT_YOU_USE
|
||||
"${IWYU_CMD}"
|
||||
)
|
||||
get_target_property(TARGET_SOURCES "${IWYU_TARGET}" SOURCES)
|
||||
set_source_files_properties(${TARGET_SOURCES}
|
||||
PROPERTIES
|
||||
OBJECT_DEPENDS "${IWYU_MAPPING}"
|
||||
)
|
||||
endfunction()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user