<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
10 lines
344 B
CMake
10 lines
344 B
CMake
add_library(optional INTERFACE)
|
|
|
|
# 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
|
|
)
|
|
endif()
|