[build] Run cmake again when source file lists changes

Since commit bded6c65d5 ([build] use plain text files for file lists
to simplify integration with other build systems) adding new source
files would not cause cmake to be re-ran since it doesn't automatically
track the plain text files. Fix that by explicitly adding those files to
CMAKE_CONFIGURE_DEPENDS.
This commit is contained in:
Ander Conselvan de Oliveira
2018-09-14 10:46:01 +03:00
parent 235f789688
commit b9ef805ae0

View File

@@ -130,6 +130,7 @@ function(load_sources_list VAR FILELIST)
endif()
endforeach()
set(${VAR} "${_FILES}" PARENT_SCOPE)
set_property(DIRECTORY "${CMAKE_SOURCE_DIR}" APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${FILELIST}")
endfunction()
function(target_sources_from_file TARGET TYPE FILELIST)