summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-10-08 16:09:35 +0300
committerKonstantin Käfer <mail@kkaefer.com>2019-01-21 17:00:31 +0100
commitd53c7860cd663904e7ef529dfe527b16fd514f56 (patch)
treee3e06015abc044fad57fe2722e1d87778089840a /vendor
parentd0e7326e5d42dbed0792c535fd4f25b920b057f0 (diff)
downloadqtlocation-mapboxgl-d53c7860cd663904e7ef529dfe527b16fd514f56.tar.gz
[build] use optional polyfill on Android, and upgrade to NDK r19
<experimental/optional> is not available anymore in newer STL versions, e.g. according to libc++'s TS deprecation policy: https://libcxx.llvm.org/TS_deprecation.html
Diffstat (limited to 'vendor')
-rw-r--r--vendor/optional.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/vendor/optional.cmake b/vendor/optional.cmake
index 157ccc991d..fa299da6a6 100644
--- a/vendor/optional.cmake
+++ b/vendor/optional.cmake
@@ -1,9 +1,8 @@
add_library(optional INTERFACE)
-# This polyfill is really only needed for
-# Windows. We need to be careful to not leak
-# it into any of our public interfaces.
-if(WIN32)
+# This polyfill is needed for Windows and Android since these standard libraries don't ship with
+# usable versions of <experimental/optional>
+if(WIN32 OR MBGL_PLATFORM STREQUAL "android")
target_include_directories(optional SYSTEM INTERFACE
${CMAKE_SOURCE_DIR}/vendor/optional/include
)