From 8b6d93967882b4e068e76e85415110e07bc24448 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Tue, 22 Aug 2023 16:45:53 -0400 Subject: [PATCH] support non-system Boost --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)