aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-25 11:46:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-25 11:46:51 +0100
commitab06871bb21a55789120c271eb6b7ad02033b95c (patch)
tree29e3afb9f05f39c0a34fa80944f6a6ed4712795f /CMakeLists.txt
parentd17bb4e4351cde0624e1a703f30aac03a127fc92 (diff)
downloadrspamd-ab06871bb21a55789120c271eb6b7ad02033b95c.tar.gz
rspamd-ab06871bb21a55789120c271eb6b7ad02033b95c.zip
[Minor] Try to fix cmake stupidity
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8838892a9..3b3b768fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -875,10 +875,10 @@ CHECK_FUNCTION_EXISTS(vfork HAVE_VFORK)
CHECK_FUNCTION_EXISTS(wait4 HAVE_WAIT4)
CHECK_FUNCTION_EXISTS(waitpid HAVE_WAITPID)
CHECK_FUNCTION_EXISTS(flock HAVE_FLOCK)
-CHECK_FUNCTION_EXISTS(tanhl HAVE_TANHL)
-CHECK_FUNCTION_EXISTS(tanh HAVE_TANH)
-CHECK_FUNCTION_EXISTS(expl HAVE_EXPL)
-CHECK_FUNCTION_EXISTS(exp2l HAVE_EXP2L)
+CHECK_LIBRARY_EXISTS(m tanhl HAVE_TANHL)
+CHECK_LIBRARY_EXISTS(m tanh HAVE_TANH)
+CHECK_LIBRARY_EXISTS(m expl HAVE_EXPL)
+CHECK_LIBRARY_EXISTS(m exp2l HAVE_EXP2L)
CHECK_FUNCTION_EXISTS(sendfile HAVE_SENDFILE)
CHECK_FUNCTION_EXISTS(mkstemp HAVE_MKSTEMP)
CHECK_FUNCTION_EXISTS(setitimer HAVE_SETITIMER)