diff options
author | Alexandre Jesus <adbjesus@gmail.com> | 2016-08-22 16:47:16 +0100 |
---|---|---|
committer | Alexandre Jesus <adbjesus@gmail.com> | 2016-08-22 16:47:16 +0100 |
commit | 9196ea8f3d150b4b538caeb7e5477cf095b359b9 (patch) | |
tree | 8d07825dbc871b0ec7f6ff11026ef778855064bc | |
parent | 3c8f9385498611df123d5f07d0e52035b568d415 (diff) | |
download | libuknapsack-9196ea8f3d150b4b538caeb7e5477cf095b359b9.tar.gz libuknapsack-9196ea8f3d150b4b538caeb7e5477cf095b359b9.zip |
Add -lm to compilation flags
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fa1ad6c..2c22493 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ set(PROJECT_VERSION ${PROJECT_MAJOR_VERSION}.${PROJECT_MINOR_VERSION}.${PROJECT_ # CMake ################################################################################ set(C_FLAGS_WARNING "-Wall -pedantic") -set(C_CXX_FLAGS_DEFAULT "${C_FLAGS_WARNING} -O2") +set(C_CXX_FLAGS_DEFAULT "${C_FLAGS_WARNING} -O2 -lm") set(CMAKE_C_FLAGS "${C_CXX_FLAGS_DEFAULT} ${CMAKE_C_FLAGS}") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O0 -g -DDEBUG=1") |