Skip to content

Commit 4cfdaf0

Browse files
committed
Correct warts in Boost build-up
1 parent d10ef7c commit 4cfdaf0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

cmake/custom/pcmsolver.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if(NOT DEFINED SUBMODULES_INSTALL_PREFIX)
1010
endif()
1111

1212
set(BOOST_MINIMUM_REQUIRED 1.54.0)
13+
set(BOOST_COMPONENTS_REQUIRED "")
1314
if(BUILD_STANDALONE OR ENABLE_TIMER)
1415
set(BOOST_COMPONENTS_REQUIRED "chrono;timer;system")
1516
endif()

cmake/downloaded/autocmake_boost.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ set(BOOST_ARCHIVE boost_${BOOSTVER}.zip)
6363
set(Boost_USE_STATIC_LIBS ON)
6464
set(Boost_USE_MULTITHREADED ON)
6565
set(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

6969
set(BUILD_CUSTOM_BOOST FALSE)
7070
if(FORCE_CUSTOM_BOOST)
@@ -74,6 +74,9 @@ if(FORCE_CUSTOM_BOOST)
7474
set(BOOST_INCLUDEDIR "")
7575
set(BOOST_LIBRARYDIR "")
7676
else()
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)

cmake/downloaded/boost_headers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Install Boost
22
add_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

0 commit comments

Comments
 (0)