summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2019-07-30 11:44:38 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2019-07-30 12:15:57 +0300
commite338e1d515074b8b370bb38c25b16ff68d16cef1 (patch)
tree9d3f8cc7b09753c89fb02db1d2de211351998e8f
parentac9418650802e82347d1730c2699f29ddd5f6a15 (diff)
downloadqtlocation-mapboxgl-e338e1d515074b8b370bb38c25b16ff68d16cef1.tar.gz
[build] Do not include mapbox-base if target already exists
-rw-r--r--cmake/vendor.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/vendor.cmake b/cmake/vendor.cmake
index aa986aaf5e..03e34ccbd9 100644
--- a/cmake/vendor.cmake
+++ b/cmake/vendor.cmake
@@ -27,7 +27,9 @@ include(${CMAKE_SOURCE_DIR}/vendor/vector-tile.cmake)
include(${CMAKE_SOURCE_DIR}/vendor/wagyu.cmake)
include(${CMAKE_SOURCE_DIR}/vendor/args.cmake)
-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/vendor/mapbox-base)
+if(NOT TARGET mapbox-base)
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/vendor/mapbox-base ${CMAKE_BINARY_DIR}/.build-mapbox-gl-native-mapbox-base)
+endif()
if(MBGL_PLATFORM STREQUAL "linux" OR MBGL_PLATFORM STREQUAL "macos")
include(${CMAKE_SOURCE_DIR}/vendor/glfw.cmake)