[build] Only add mapbox-base if target is not set

This commit is contained in:
Bruno de Oliveira Abinader
2019-10-19 23:04:52 +03:00
parent bbeb86577e
commit f41f274ca1

View File

@@ -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)