Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion test/cmake_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ project(cmake_subdir_test LANGUAGES CXX)
# Those 2 should work the same
# while using find_package for the installed Boost avoids the need to manually specify dependencies
if(BOOST_CI_INSTALL_TEST)
find_package(boost_format REQUIRED)
# CMake config for header-only library is not installed with B2
if(BOOST_CI_INSTALLED_BY STREQUAL "B2")
find_package(Boost REQUIRED)
# Add compat target
add_library(Boost_format INTERFACE)
target_link_libraries(Boost_format INTERFACE Boost::headers)
add_library(Boost::format ALIAS Boost_format)
else()
find_package(boost_format REQUIRED)
endif()
else()
set(BOOST_INCLUDE_LIBRARIES format)
add_subdirectory(../../../.. deps/boost EXCLUDE_FROM_ALL)
Expand Down
Loading