]> 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 08:59:39 +0000 (10:59 +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 a876ea5d7d8cb2aa50071fa8b0a53665e97d5374..9fc1098ad48a0b8f021abf9ddea3ee878e32b4bd 100755 (executable)
@@ -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)