support non-system Boost

This commit is contained in:
Lily Tsuru 2023-08-22 16:45:53 -04:00
parent 5b412019af
commit 8b6d939678
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ include(ProjectFuncs)
# required system dependencies # required system dependencies
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
find_package(Boost REQUIRED) find_package(Boost REQUIRED COMPONENTS system)
# default linker # default linker
if(NOT PROJECT_LINKER AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") if(NOT PROJECT_LINKER AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
@ -40,4 +40,8 @@ target_compile_definitions(swsf_bruteforce PRIVATE
target_compile_features(swsf_bruteforce PRIVATE cxx_std_20) target_compile_features(swsf_bruteforce PRIVATE cxx_std_20)
target_include_directories(swsf_bruteforce PRIVATE ${PROJECT_SOURCE_DIR}/src) target_include_directories(swsf_bruteforce PRIVATE ${PROJECT_SOURCE_DIR}/src)
target_link_libraries(swsf_bruteforce PRIVATE
Boost::system
)
project_target(swsf_bruteforce) project_target(swsf_bruteforce)