summaryrefslogtreecommitdiff
path: root/vendor/optional.cmake
blob: fa299da6a64f63bf646a8e27f8ed7b2b700c211c (plain)
1
2
3
4
5
6
7
8
9
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()