From 49745cf2d24215cc1c971af70fcbbeaf9c721c09 Mon Sep 17 00:00:00 2001 From: krahets Date: Thu, 16 Nov 2023 21:14:20 +0800 Subject: [PATCH] Add the link of math.h lib in CMakeList. --- codes/c/chapter_greedy/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/codes/c/chapter_greedy/CMakeLists.txt b/codes/c/chapter_greedy/CMakeLists.txt index f332d75fa2..8c428ebdb5 100644 --- a/codes/c/chapter_greedy/CMakeLists.txt +++ b/codes/c/chapter_greedy/CMakeLists.txt @@ -2,3 +2,4 @@ add_executable(coin_change_greedy coin_change_greedy.c) add_executable(fractional_knapsack fractional_knapsack.c) add_executable(max_capacity max_capacity.c) add_executable(max_product_cutting max_product_cutting.c) +target_link_libraries(max_product_cutting m)