matrixion/deps/cmake/Boost.cmake

29 lines
838 B
CMake
Raw Normal View History

2018-06-04 13:54:51 +03:00
if(WIN32)
message(STATUS "Building Boost in Windows is not supported (skipping)")
return()
endif()
2019-11-02 00:30:56 +03:00
include(BoostToolsetId)
set(BOOST_TOOLSET "gcc")
Boost_Get_ToolsetId(BOOST_TOOLSET)
2018-06-04 13:54:51 +03:00
ExternalProject_Add(
Boost
URL ${BOOST_URL}
URL_HASH SHA256=${BOOST_SHA256}
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/boost
DOWNLOAD_NO_PROGRESS 0
BUILD_IN_SOURCE 1
SOURCE_DIR ${DEPS_BUILD_DIR}/boost
CONFIGURE_COMMAND ${DEPS_BUILD_DIR}/boost/bootstrap.sh
--with-libraries=random,thread,system,iostreams,atomic,chrono,date_time,regex
--prefix=${DEPS_INSTALL_DIR}
2019-11-02 00:30:56 +03:00
--with-toolset=${BOOST_TOOLSET}
2019-05-09 05:57:21 +03:00
BUILD_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 cxxstd=14 variant=release link=shared runtime-link=shared threading=multi --layout=system
2018-06-04 13:54:51 +03:00
INSTALL_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 install
)
list(APPEND THIRD_PARTY_DEPS Boost)