Make sure to link the tests with libm

Fixes Debian/GCC build.
This commit is contained in:
Přemysl Eric Janouch 2015-02-08 16:30:07 +01:00
parent d55422e0a5
commit c117a6ddaa
1 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ include_directories (${PROJECT_SOURCE_DIR})
include_directories (${GTK3_INCLUDE_DIRS} include_directories (${GTK3_INCLUDE_DIRS}
${JSON_GLIB_INCLUDE_DIRS} ${Lua52_INCLUDE_DIRS}) ${JSON_GLIB_INCLUDE_DIRS} ${Lua52_INCLUDE_DIRS})
set (logdiag_LIBS ${GTK3_LIBRARIES} set (logdiag_LIBS ${GTK3_LIBRARIES}
${JSON_GLIB_LIBRARIES} ${Lua52_LIBRARIES}) ${JSON_GLIB_LIBRARIES} ${Lua52_LIBRARIES} m)
if (WIN32) if (WIN32)
find_package (LibIntl REQUIRED) find_package (LibIntl REQUIRED)
@ -238,7 +238,7 @@ set_target_properties (liblogdiag PROPERTIES OUTPUT_NAME logdiag)
# Build the executable # Build the executable
add_executable (logdiag WIN32 ${logdiag_SOURCES} ${logdiag_HEADERS}) add_executable (logdiag WIN32 ${logdiag_SOURCES} ${logdiag_HEADERS})
target_link_libraries (logdiag liblogdiag m ${logdiag_LIBS}) target_link_libraries (logdiag liblogdiag ${logdiag_LIBS})
# Testing # Testing
if (BUILD_TESTING) if (BUILD_TESTING)