1
0
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:
Anonymous Maarten 2017-10-31 02:24:18 +01:00 committed by Daniel Evans
parent e60fd6af6b
commit 590509037c

View File

@ -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()