瀏覽代碼

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

[SVN r52808]
Douglas Gregor 17 年之前
父節點
當前提交
ca9223844a
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      CMakeLists.txt

+ 10 - 4
CMakeLists.txt

@@ -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()
+
 ##########################################################################
 
 ##########################################################################

粤ICP备19079148号