Make sure maplibre-tile-spec builds OK with Qt with all configurations (#4419)

This commit is contained in:
Tadej Novak
2026-07-22 14:46:32 +02:00
committed by GitHub
parent 5f14c5501c
commit 5cfd7f1650
3 changed files with 8 additions and 5 deletions

View File

@@ -2,9 +2,8 @@ set(MLT_WITH_JSON OFF CACHE BOOL "No JSON support" FORCE)
set(MLT_WITH_PROTOZERO OFF CACHE BOOL "No protozero" FORCE)
set(MLT_WITH_TESTS OFF CACHE BOOL "Google Test conflicts with Dawn")
set(MLT_WITH_TOOLS OFF CACHE BOOL "Not used")
# This is set by the platform CMakeLists.txt after vendor libraries. If it was set earlier, we could just use it.
set(CMAKE_OSX_DEPLOYMENT_TARGET 14.3)
set(MLT_OSX_DEPLOYMENT_TARGET ${CMAKE_OSX_DEPLOYMENT_TARGET} CACHE STRING "Inherited MacOS/iOS target" FORCE)
if(MLN_WITH_QT)
set(MLT_AS_OBJECT_LIBRARY ON CACHE BOOL "Build as object library" FORCE)
endif()
add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/maplibre-tile-spec/cpp SYSTEM)