[cmake] watch config files

As we do add configure_file output to clean target cmake configure must
be rerun. To trigger that add source and generated file to
CMAKE_CONFIGURE_DEPENDS
This commit is contained in:
akallabeth 2024-10-17 22:26:18 +02:00
parent 02104bc2c3
commit 57969939e3
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -9,6 +9,14 @@ function(cleaning_configure_file SRC DST)
set_property( set_property(
DIRECTORY DIRECTORY
APPEND APPEND
PROPERTY ADDITIONAL_CLEAN_FILES ${DST} PROPERTY ADDITIONAL_CLEAN_FILES
${DST}
)
set_property(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS
${SRC}
${DST}
) )
endfunction() endfunction()