astar/cmake/lib/boost.cmake
Bensuperpc 7d81e22900
Add files
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2024-01-29 21:08:29 +01:00

23 lines
390 B
CMake
Executable File

cmake_minimum_required(VERSION 3.14.0)
include(FetchContent)
if(NOT DEFINED BOOST_INCLUDE_LIBRARIES)
set(BOOST_INCLUDE_LIBRARIES system)
endif()
if(NOT DEFINED BOOST_ENABLE_CMAKE)
set(BOOST_ENABLE_CMAKE ON)
endif()
FetchContent_Declare(
Boost
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_TAG boost-1.81.0
#GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(Boost)