From 10cc0bb9a95aa08f6ca2beac34ad0017ce0a9329 Mon Sep 17 00:00:00 2001 From: Vadim Grigoruk Date: Sat, 22 Sep 2018 08:04:39 +0300 Subject: [PATCH] travis fix --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abe7603..194a97c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,6 +181,10 @@ target_include_directories(tic80core PRIVATE 3rd-party/fennel) add_dependencies(tic80core lua lpeg wren giflib) target_link_libraries(tic80core lua lpeg wren giflib) +if(LINUX) + target_link_libraries(tic80core m) +endif() + ################################ # SDL2 ################################ @@ -260,7 +264,7 @@ if(APPLE) "-framework AudioToolbox" ) elseif(LINUX) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -static") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") target_link_libraries(sokol X11 GL m dl asound) endif()