diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-04 13:54:51 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-06-04 13:54:51 +0300 |
commit | 0a9d95dfc9ef2c7e822257cc7b256cdd24d4a0d3 (patch) | |
tree | c708e27bb7b74e3571dd6c082847fa1d7a3e587a /deps/cmake/Boost.cmake | |
parent | 70ffa434246dbb1a8c8c22479c7b57d7ad0f0826 (diff) |
Include mtxclient in the build
Diffstat (limited to 'deps/cmake/Boost.cmake')
-rw-r--r-- | deps/cmake/Boost.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/cmake/Boost.cmake b/deps/cmake/Boost.cmake new file mode 100644 index 00000000..572d1d07 --- /dev/null +++ b/deps/cmake/Boost.cmake @@ -0,0 +1,23 @@ +if(WIN32) + message(STATUS "Building Boost in Windows is not supported (skipping)") + return() +endif() + +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} + BUILD_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 variant=release link=static threading=multi --layout=system + INSTALL_COMMAND ${DEPS_BUILD_DIR}/boost/b2 -d0 install +) + +list(APPEND THIRD_PARTY_DEPS Boost) |