Skip to content

Commit 8647023

Browse files
committed
Revert changes to test/system/CMakeLists.txt; the system component should still be present
1 parent a73329b commit 8647023

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

test/system/CMakeLists.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,10 @@ if(USE_STAGED_BOOST)
1818
set(BOOST_HINTS HINTS ../../../../stage)
1919
endif()
2020

21-
# System is header-only in b2 starting from 1.89, so there's no `system` component anymore
22-
23-
find_package(Boost ${BOOST_VERSION} EXACT REQUIRED OPTIONAL_COMPONENTS system ${BOOST_HINTS})
24-
25-
# Using `include_directories`, `link_directories`, `link_libraries`
26-
# is bad practice, only done here for testing purposes.
27-
28-
include_directories(${Boost_INCLUDE_DIRS})
29-
link_directories(${Boost_LIBRARY_DIRS})
30-
link_libraries(${Boost_LIBRARIES})
21+
find_package(Boost ${BOOST_VERSION} EXACT REQUIRED COMPONENTS system ${BOOST_HINTS})
3122

3223
add_executable(main quick.cpp)
24+
target_link_libraries(main Boost::system Boost::headers)
3325

3426
enable_testing()
3527
add_custom_target(check VERBATIM COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure --no-tests=error -C $<CONFIG>)

0 commit comments

Comments
 (0)