From 4cf7389a905ba5408b156cf73ca4624822e1acf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20=C4=8Cas?= Date: Sun, 26 Apr 2015 22:44:40 +0200 Subject: [PATCH] Fix CMakeLists.txt for FreeBSD and Linux Compilation was failing in Linux and FreeBSD --- linking with `libm` fixes the problem in these systems. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cbe2eb1..446c2ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,3 +31,6 @@ add_library(dschema add_executable(dukluv src/main.c) target_link_libraries(dukluv duv dschema duktape uv) +if(UNIX AND NOT APPLE) + target_link_libraries(dukluv m) +endif()