From e0958179d416803e272c632defacc15304e37d3a Mon Sep 17 00:00:00 2001 From: Florian Fontan Date: Sun, 8 Dec 2024 00:26:17 +0100 Subject: [PATCH] Add missing Threads::Threads dependency in CMakeLists.txt --- src/knapsack/algorithms/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/knapsack/algorithms/CMakeLists.txt b/src/knapsack/algorithms/CMakeLists.txt index 53bde69..b1ef107 100644 --- a/src/knapsack/algorithms/CMakeLists.txt +++ b/src/knapsack/algorithms/CMakeLists.txt @@ -16,6 +16,7 @@ target_link_libraries(KnapsackSolver_knapsack_greedy PUBLIC KnapsackSolver_knapsack) add_library(KnapsackSolver::knapsack::greedy ALIAS KnapsackSolver_knapsack_greedy) +find_package(Threads) add_library(KnapsackSolver_knapsack_dynamic_programming_bellman) target_sources(KnapsackSolver_knapsack_dynamic_programming_bellman PRIVATE dynamic_programming_bellman.cpp) @@ -24,7 +25,8 @@ target_include_directories(KnapsackSolver_knapsack_dynamic_programming_bellman P target_link_libraries(KnapsackSolver_knapsack_dynamic_programming_bellman PUBLIC KnapsackSolver_knapsack KnapsackSolver_knapsack_upper_bound_dantzig - KnapsackSolver_knapsack_greedy) + KnapsackSolver_knapsack_greedy + Threads::Threads) add_library(KnapsackSolver::knapsack::dynamic_programming_bellman ALIAS KnapsackSolver_knapsack_dynamic_programming_bellman) add_library(KnapsackSolver_knapsack_dynamic_programming_primal_dual)