From c117a6ddaaa4099e0c0c00027d692fa1c4781d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 8 Feb 2015 16:30:07 +0100 Subject: Make sure to link the tests with libm Fixes Debian/GCC build. --- CMakeLists.txt | 4 ++-- 1 file 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) -- cgit v1.2.3