Skip to content

Commit

Permalink
added the path to cmake_prefix_path
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 12, 2024
1 parent b1ec641 commit 4e4ca27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ include("${CMAKE_CURRENT_LIST_DIR}/cmake/configure_boost.cmake")
# Dependency Handling
##############################################################


# 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" NO_DEFAULT_PATH)
list(APPEND CMAKE_PREFIX_PATH "${PACKAGE_PREFIX_DIR}/boost")
find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED)

if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
Expand Down

0 comments on commit 4e4ca27

Please sign in to comment.