diff --git a/CMakeLists.txt b/CMakeLists.txt index c87e15b..fb947c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ include(ProjectFuncs) # required system dependencies find_package(Threads REQUIRED) -find_package(Boost REQUIRED) +find_package(Boost REQUIRED COMPONENTS system) # default linker 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_include_directories(swsf_bruteforce PRIVATE ${PROJECT_SOURCE_DIR}/src) +target_link_libraries(swsf_bruteforce PRIVATE + Boost::system +) + project_target(swsf_bruteforce)