summaryrefslogtreecommitdiff
path: root/cmake/mbgl.cmake
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 13:36:47 +0300
commitb9ef805ae03dc4fafde7ad74132cfb7d190401aa (patch)
treedddeb3aba80907e4304dc23a8ef7b3eb39fe3822 /cmake/mbgl.cmake
parent235f78968858219da7ba276e9746b07edef5c077 (diff)
downloadqtlocation-mapboxgl-b9ef805ae03dc4fafde7ad74132cfb7d190401aa.tar.gz
[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.
Diffstat (limited to 'cmake/mbgl.cmake')
-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)