diff --git a/Config.cmake.in b/Config.cmake.in index 1b4b0fee..25851402 100644 --- a/Config.cmake.in +++ b/Config.cmake.in @@ -15,12 +15,11 @@ include("${CMAKE_CURRENT_LIST_DIR}/cmake/configure_boost.cmake") # Our integration superbuild installs its dependencies # in respective subdirectories, e.g., boost, googletest, benchmark -list(APPEND CMAKE_PREFIX_PATH "${PACKAGE_PREFIX_DIR}/boost") # 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) +find_dependency(Boost ${BOOST_MIN_VERSION} REQUIRED PATHS "${PACKAGE_PREFIX_DIR}/boost") if(Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS})