diff options
author | Fredrik Karlsson <bjorn.fredrik.karlsson@gmail.com> | 2020-05-12 10:44:39 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2020-05-26 20:35:05 +0300 |
commit | 7a9320b4e85f5a134ab628850252ca81b09f1559 (patch) | |
tree | a7e4b881c3de8b0303c8e15bad13538391008499 | |
parent | 4e87be8779e974eefeb95edf2bdbc72cbcfae042 (diff) | |
download | qtlocation-mapboxgl-7a9320b4e85f5a134ab628850252ca81b09f1559.tar.gz |
[build] allow different build types for mbgl core
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index afa82b0b75..6368a32b25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,7 @@ project("Mapbox GL Native" LANGUAGES CXX C) set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER Core) +set(MBGL_BUILD_TYPE "STATIC" CACHE STRING "Default build type.") set( MEMORYCHECK_COMMAND_OPTIONS @@ -103,7 +104,8 @@ if(MBGL_WITH_QT) endif() add_library( - mbgl-core STATIC + mbgl-core + ${MBGL_BUILD_TYPE} ${PROJECT_SOURCE_DIR}/include/mbgl/actor/actor.hpp ${PROJECT_SOURCE_DIR}/include/mbgl/actor/actor_ref.hpp ${PROJECT_SOURCE_DIR}/include/mbgl/actor/aspiring_actor.hpp |