summarylogtreecommitdiffstats
path: root/0001-Add-missing-lm-dep.patch
blob: 49eb988c7d5f3b91931d7ac324722f1ffdaaac53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 694cc8c..ad8fef3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,7 +19,8 @@ pkg_check_modules(GTHREAD REQUIRED "gthread-2.0 >= 2.14.0")

 add_definitions(${DEPS_CFLAGS})

-link_libraries(${DEPS_LIBRARIES} ${GTHREAD_LIBRARIES})
+find_library(M_LIB m)
+link_libraries(${DEPS_LIBRARIES} ${GTHREAD_LIBRARIES} ${M_LIB})

 link_directories(${DEPS_LIBRARY_DIRS})

--