summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-07-18 18:33:33 +0300
committerKonstantin Käfer <mail@kkaefer.com>2016-08-05 11:42:22 +0200
commit6b44aa9095316c7823880f25a745490e271c3400 (patch)
tree0f69153ba5b2a65dbac11c83e7108a6d1cf50730 /CMakeLists.txt
parente82aeddb6f00d82a02e73aaa17190f9ba9a3b38f (diff)
downloadqtlocation-mapboxgl-6b44aa9095316c7823880f25a745490e271c3400.tar.gz
[build] Use cxx11abi suffix when needed
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e81bfe2e57..04b2b6c051 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,15 +9,23 @@ mason_use(variant 1.1.0)
mason_use(unique_resource dev)
mason_use(rapidjson 1.0.2)
mason_use(boost 1.60.0)
-mason_use(geojson 0.1.4)
mason_use(geojsonvt 6.1.2)
mason_use(supercluster 0.2.0)
mason_use(kdbush 0.1.1)
mason_use(earcut 0.11)
mason_use(protozero 1.3.0)
-mason_use(gtest 1.7.0)
mason_use(pixelmatch 0.9.0)
+option(WITH_CXX11ABI "Use cxx11abi mason packages" OFF)
+
+if(WITH_CXX11ABI)
+ mason_use(geojson 0.1.4-cxx11abi)
+ mason_use(gtest 1.7.0-cxx11abi)
+else()
+ mason_use(geojson 0.1.4)
+ mason_use(gtest 1.7.0)
+endif()
+
set(CMAKE_CONFIGURATION_TYPES Debug Release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra -Wshadow -Wno-variadic-macros -Wno-unknown-pragmas")