Provide a CMake option for deciding between installers that bundle all of Boost vs. installers that download selected components on-the-fly

[SVN r52808]
This commit is contained in:
Douglas Gregor 2009-05-06 20:17:36 +00:00
parent 344738c83c
commit ca9223844a

View file

@ -235,11 +235,17 @@ if(WIN32 AND NOT UNIX)
endif(WIN32 AND NOT UNIX)
include(CPack)
if(COMMAND cpack_configure_downloads)
cpack_configure_downloads(
"http://www.osl.iu.edu/~dgregor/Boost-CMake/${BOOST_VERSION}/"
ALL ADD_REMOVE)
option(BOOST_INSTALLER_ON_THE_FLY
"Whether to build installers that download components on-the-fly" OFF)
if (BOOST_INSTALLER_ON_THE_FLY)
if(COMMAND cpack_configure_downloads)
cpack_configure_downloads(
"http://www.osl.iu.edu/~dgregor/Boost-CMake/${BOOST_VERSION}/"
ALL ADD_REMOVE)
endif()
endif()
##########################################################################
##########################################################################