Added module for Boost detection and automatic build-up
This commit is contained in:
committed by
Roberto Di Remigio
parent
ea694c0bdd
commit
1780e4a189
11
modules/boost/boost_configure.cmake
Normal file
11
modules/boost/boost_configure.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
# Run bootstrap.sh to configure the build. We will install in ${PROJECT_BINARY_DIR}/boost
|
||||
add_custom_command(
|
||||
OUTPUT ${CUSTOM_BOOST_LOCATION}/boost.configured
|
||||
COMMAND ./bootstrap.sh --with-toolset=${toolset}
|
||||
${select_libraries}
|
||||
--with-python=${PYTHON_EXECUTABLE}
|
||||
--prefix=${CUSTOM_BOOST_LOCATION} 1> ${CUSTOM_BOOST_LOCATION}/boost.configured.log 2> ${CUSTOM_BOOST_LOCATION}/boost.configured.err
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${CUSTOM_BOOST_LOCATION}/boost.configured
|
||||
WORKING_DIRECTORY ${BOOST_BUILD_DIR}
|
||||
DEPENDS ${CUSTOM_BOOST_LOCATION}/boost.user-config
|
||||
COMMENT "Configuring Boost")
|
Reference in New Issue
Block a user