From 98c08ba5e86d3ef232d0429e6cd592f89bab2e3e Mon Sep 17 00:00:00 2001 From: Vladislav Yaroslavlev Date: Thu, 5 Nov 2015 14:53:11 +0300 Subject: [PATCH] add libm to link_libraries Fix of the error "undefined reference to symbol 'cos@@GLIBC_2.2.5'" --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e873bf..ead39f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ include_directories(source) link_libraries ( ${SDL_LIBRARY} + m ) add_definitions("-Wall -std=c99 --pedantic")