diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-10-19 23:04:52 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-10-20 00:01:28 +0300 |
commit | f41f274ca16032da8c41186b2181f0c800d777df (patch) | |
tree | c911e681a8825e0090aa978b671ea254f3786529 | |
parent | bbeb86577eea34d6241f0e70119f91f208cd7a12 (diff) | |
download | qtlocation-mapboxgl-f41f274ca16032da8c41186b2181f0c800d777df.tar.gz |
[build] Only add mapbox-base if target is not set
-rw-r--r-- | next/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/next/CMakeLists.txt b/next/CMakeLists.txt index fb0779bea4..c45c2b8641 100644 --- a/next/CMakeLists.txt +++ b/next/CMakeLists.txt @@ -877,8 +877,10 @@ target_include_directories( PUBLIC ${MBGL_ROOT}/include ) -add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/mapbox) -add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/extras) +if(NOT TARGET mapbox-base) + add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/mapbox) + add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/extras) +endif(NOT TARGET mapbox-base) include(${PROJECT_SOURCE_DIR}/vendor/boost.cmake) include(${PROJECT_SOURCE_DIR}/vendor/earcut.hpp.cmake) |