From 79e39fb50f1fd4ba5d54e73faafc3fd5ea55df41 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sun, 21 Sep 2014 10:59:39 +0200 Subject: [PATCH] Explicitly link against the math library MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch was suggested by Diego Elio Pettenò on May 25, 2011 and implemented in commit b966a3a224de2a6ea591458bec47c1bb4e9b3745 but the patch had not been applied to the CMake build file. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a876ea5..9fc1098 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,9 @@ IF(!HAVE_GETOPT_H) MESSAGE(SEND_ERROR "getopt.h is required to compile sarg") ENDIF(!HAVE_GETOPT_H) +# Required libraries +TARGET_LINK_LIBRARIES(sarg m) + # Windows need lib wsock32 and ws2_32 IF(CMAKE_SYSTEM_NAME STREQUAL "Windows") CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H) -- 2.47.2