Update cmake_install_test/CMakeLists.txt, taking advantage of latest boost_install

This commit is contained in:
Peter Dimov
2026-06-29 19:16:27 +03:00
parent ef5252b0a2
commit 9d1f81ffeb
+1 -12
View File
@@ -6,18 +6,7 @@ cmake_minimum_required(VERSION 3.5...3.31)
project(cmake_install_test LANGUAGES CXX)
if(BOOST_CI_INSTALLED_BY STREQUAL "B2")
find_package(Boost REQUIRED)
add_library(Boost::mpl INTERFACE IMPORTED)
set_property(TARGET Boost::mpl APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::headers)
else()
find_package(boost_mpl REQUIRED)
endif()
find_package(Boost REQUIRED COMPONENTS mpl)
add_executable(main main.cpp)
target_link_libraries(main Boost::mpl)