CMake: Reconfigure whenever module EXTRA_FILES are touched
Otherwise the touched files will not be re-copied and re-installed until an explicit rerun of cmake. Change-Id: I5abb752b45d8b33885a59363fe987225a89e713a Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 07e7340c0d82a33b7b112cb7c3a2a719ad2ec9c3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
382505e22f
commit
3f1ddd1068
@ -719,6 +719,9 @@ set(QT_ALLOW_MISSING_TOOLS_PACKAGES TRUE)")
|
||||
get_filename_component(basename ${cmake_file} NAME)
|
||||
file(COPY ${cmake_file} DESTINATION ${config_build_dir})
|
||||
list(APPEND extra_cmake_files "${config_build_dir}/${basename}")
|
||||
|
||||
# Make sure touched extra cmake files cause a reconfigure, so they get re-copied.
|
||||
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${cmake_file}")
|
||||
endforeach()
|
||||
list(APPEND extra_cmake_includes ${arg_EXTRA_CMAKE_INCLUDES})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user