File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if(NOT DEFINED SUBMODULES_INSTALL_PREFIX)
1010endif ()
1111
1212set (BOOST_MINIMUM_REQUIRED 1.54.0)
13+ set (BOOST_COMPONENTS_REQUIRED "" )
1314if (BUILD_STANDALONE OR ENABLE_TIMER)
1415 set (BOOST_COMPONENTS_REQUIRED "chrono;timer;system" )
1516endif ()
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ set(BOOST_ARCHIVE boost_${BOOSTVER}.zip)
6363set (Boost_USE_STATIC_LIBS ON )
6464set (Boost_USE_MULTITHREADED ON )
6565set (Boost_USE_STATIC_RUNTIME OFF )
66- set (Boost_DEBUG OFF )
67- set (Boost_DETAILED_FAILURE_MESSAGE OFF )
66+ set (Boost_DEBUG ON )
67+ set (Boost_DETAILED_FAILURE_MESSAGE ON )
6868
6969set (BUILD_CUSTOM_BOOST FALSE )
7070if (FORCE_CUSTOM_BOOST)
@@ -74,6 +74,9 @@ if(FORCE_CUSTOM_BOOST)
7474 set (BOOST_INCLUDEDIR "" )
7575 set (BOOST_LIBRARYDIR "" )
7676else ()
77+ # Read from cache, needed for rebuilds
78+ set (BOOST_INCLUDEDIR ${Boost_INCLUDE_DIR} )
79+ set (BOOST_LIBRARYDIR ${Boost_LIBRARY_DIR} )
7780 find_package (Boost ${BOOST_MINIMUM_REQUIRED} COMPONENTS "${BOOST_COMPONENTS_REQUIRED} " )
7881 if (NOT Boost_FOUND)
7982 set (BUILD_CUSTOM_BOOST TRUE )
Original file line number Diff line number Diff line change 11# Install Boost
22add_custom_command (
33 OUTPUT ${CUSTOM_BOOST_LOCATION} /boost.installed
4- COMMAND ${CMAKE_COMMAND} -E copy_directory ${BOOST_BUILD_DIR} /boost ${CUSTOM_BOOST_LOCATION} /include
4+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${BOOST_BUILD_DIR} /boost ${CUSTOM_BOOST_LOCATION} /include /boost
55 COMMAND ${CMAKE_COMMAND} -E touch ${CUSTOM_BOOST_LOCATION} /boost.installed
66 WORKING_DIRECTORY ${BOOST_BUILD_DIR}
77 DEPENDS ${CUSTOM_BOOST_LOCATION} /boost.user-config
You can’t perform that action at this time.
0 commit comments