summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2018-09-14 10:46:01 +0300
committerAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2018-09-14 10:52:38 +0300
commita47ef7778a12067dec5d2abaaac7a84166305b8a (patch)
treedddeb3aba80907e4304dc23a8ef7b3eb39fe3822
parent235f78968858219da7ba276e9746b07edef5c077 (diff)
downloadqtlocation-mapboxgl-upstream/anderco-rerun-cmake-on-source-list-change.tar.gz
[build] Run cmake again when source file lists changesupstream/anderco-rerun-cmake-on-source-list-change
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.
-rw-r--r--cmake/mbgl.cmake1
1 files changed, 1 insertions, 0 deletions
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)