diff --git a/cmake/CleaningConfigureFile.cmake b/cmake/CleaningConfigureFile.cmake index 93ffb2737..52ee56e12 100644 --- a/cmake/CleaningConfigureFile.cmake +++ b/cmake/CleaningConfigureFile.cmake @@ -6,9 +6,17 @@ function(cleaning_configure_file SRC DST) configure_file(${SRC} ${DST} ${ARGN}) - set_property( - DIRECTORY - APPEND - PROPERTY ADDITIONAL_CLEAN_FILES ${DST} - ) + set_property( + DIRECTORY + APPEND + PROPERTY ADDITIONAL_CLEAN_FILES + ${DST} + ) + set_property( + DIRECTORY + APPEND + PROPERTY CMAKE_CONFIGURE_DEPENDS + ${SRC} + ${DST} + ) endfunction()