Skip to content

Instantly share code, notes, and snippets.

@miquelramirez
Created September 10, 2019 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miquelramirez/82b44d16b017d5bf01b51b045add0621 to your computer and use it in GitHub Desktop.
Save miquelramirez/82b44d16b017d5bf01b51b045add0621 to your computer and use it in GitHub Desktop.
ExternalProject_Add(
Boost
PREFIX "${CMAKE_BINARY_DIR}/extern"
GIT_REPOSITORY "https://github.com/boostorg/boost.git"
GIT_TAG "boost-1.68.0"
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
BUILD_IN_SOURCE TRUE
CONFIGURE_COMMAND
<SOURCE_DIR>/bootstrap.sh
--with-libraries=filesystem
--with-libraries=log
--with-libraries=locale
--with-libraries=system
--with-libraries=thread
--prefix=<SOURCE_DIR>
BUILD_COMMAND <SOURCE_DIR>/b2 install link=static variant=release threading=multi runtime-link=static cxxstd=17
INSTALL_COMMAND ""
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment