]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Explicitly link against the math library
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 08:59:39 +0000 (10:59 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 13:33:28 +0000 (15:33 +0200)
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

index ddda5665b20460ace7fe35d56cd959e49e562f8e..a5a115161ccf161f1fe7411bae239db6bc2594c6 100755 (executable)
@@ -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)