From: Frederic Marchal Date: Sun, 21 Sep 2014 08:59:39 +0000 (+0200) Subject: Explicitly link against the math library X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0683802f679000b50134ca21d123d6e467618eea;p=thirdparty%2Fsarg.git Explicitly link against the math library 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ddda566..a5a1151 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,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)