Skip to content

Commit

Permalink
update boost installation
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 13, 2024
1 parent eabfcb1 commit 44f6716
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/cmake/configure_boost.cmake")
# Boost
# Find Boost headers only according to https://cmake.org/cmake/help/latest/module/FindBoost.html
configure_boost()
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED PATHS "${PACKAGE_PREFIX_DIR}/boost/lib/cmake/config")
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED PATHS "${PACKAGE_PREFIX_DIR}/boost")

if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
Expand Down
10 changes: 5 additions & 5 deletions dependencies/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ include(ExternalProject)

message(STATUS "Preparing external project \"loki_boost\":")

# We need to build boost for cmake support
ExternalProject_Add(
loki_boost
URL https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.gz
PREFIX ${CMAKE_BINARY_DIR}/boost
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/boost ${CMAKE_INSTALL_PREFIX}/boost/include/boost
COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/tools/cmake ${CMAKE_INSTALL_PREFIX}/boost/lib/cmake
UPDATE_DISCONNECTED 1
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> ./bootstrap.sh --prefix=<INSTALL_DIR>
BUILD_COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> ./b2 headers
INSTALL_COMMAND ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> ./b2 install
INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/boost
)

0 comments on commit 44f6716

Please sign in to comment.