aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-02-08 16:30:07 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-02-08 16:30:07 +0100
commitc117a6ddaaa4099e0c0c00027d692fa1c4781d25 (patch)
treeb69405cbdb2383a9c96d0aa12eb15db787e383eb
parentd55422e0a5d5f268f20f25baf943cf25870681d4 (diff)
downloadlogdiag-c117a6ddaaa4099e0c0c00027d692fa1c4781d25.tar.gz
logdiag-c117a6ddaaa4099e0c0c00027d692fa1c4781d25.tar.xz
logdiag-c117a6ddaaa4099e0c0c00027d692fa1c4781d25.zip
Make sure to link the tests with libm
Fixes Debian/GCC build.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9785fc..aba4bfe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -225,7 +225,7 @@ include_directories (${PROJECT_SOURCE_DIR})
include_directories (${GTK3_INCLUDE_DIRS}
${JSON_GLIB_INCLUDE_DIRS} ${Lua52_INCLUDE_DIRS})
set (logdiag_LIBS ${GTK3_LIBRARIES}
- ${JSON_GLIB_LIBRARIES} ${Lua52_LIBRARIES})
+ ${JSON_GLIB_LIBRARIES} ${Lua52_LIBRARIES} m)
if (WIN32)
find_package (LibIntl REQUIRED)
@@ -238,7 +238,7 @@ set_target_properties (liblogdiag PROPERTIES OUTPUT_NAME logdiag)
# Build the executable
add_executable (logdiag WIN32 ${logdiag_SOURCES} ${logdiag_HEADERS})
-target_link_libraries (logdiag liblogdiag m ${logdiag_LIBS})
+target_link_libraries (logdiag liblogdiag ${logdiag_LIBS})
# Testing
if (BUILD_TESTING)