Skip to content

Commit

Permalink
Add missing Threads::Threads dependency in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Dec 7, 2024
1 parent c4eddb0 commit e095817
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/knapsack/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e095817

Please sign in to comment.