From a47ef7778a12067dec5d2abaaac7a84166305b8a Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Fri, 14 Sep 2018 10:46:01 +0300 Subject: [build] Run cmake again when source file lists changes Since commit bded6c65d59b ([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. --- cmake/mbgl.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/mbgl.cmake b/cmake/mbgl.cmake index da020cc93f..9f27b16bdb 100644 --- a/cmake/mbgl.cmake +++ b/cmake/mbgl.cmake @@ -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) -- cgit v1.2.1