Files
OpenVulkano/3rdParty/boost/CMakeLists.txt
2024-07-16 13:24:08 +03:00

16 lines
446 B
CMake

Find_Package(Boost QUIET COMPONENTS regex)
include(FetchContent)
if(NOT DEFINED BOOST_LIBRARY_MIRROR)
set(BOOST_LIBRARY_MIRROR https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz)
endif ()
if (NOT Boost_FOUND)
set(BOOST_INCLUDE_LIBRARIES regex)
set(BOOST_ENABLE_CMAKE ON)
FetchContent_Declare(
Boost
URL ${BOOST_LIBRARY_MIRROR}
)
FetchContent_MakeAvailable(Boost)
endif()