summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authordmitrykos <dmitrykos@neutroncode.com>2018-10-04 21:31:23 +0300
committerSergei Nikulov <sergey.nikulov@gmail.com>2018-10-05 13:10:41 +0300
commit667b5721c71480b4e5dbd2f91d7668a2b92bf00b (patch)
treeff24a138a6fc45af66bff6f91c7caed12fe6bff8 /CMakeLists.txt
parent8a42b769a7100d8396f3b09ac0870cc9be671725 (diff)
downloadcurl-667b5721c71480b4e5dbd2f91d7668a2b92bf00b.tar.gz
cmake: test and set missed defines during configuration
Added configuration checks for HAVE_BUILTIN_AVAILABLE and HAVE_CLOCK_GETTIME_MONOTONIC. Closes #3097
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4d7605364..8ecf34ce0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1026,6 +1026,12 @@ if(HAVE_INET_NTOA_R_DECL_REENTRANT)
set(NEED_REENTRANT 1)
endif()
+# Check clock_gettime(CLOCK_MONOTONIC, x) support
+curl_internal_test(HAVE_CLOCK_GETTIME_MONOTONIC)
+
+# Check compiler support of __builtin_available()
+curl_internal_test(HAVE_BUILTIN_AVAILABLE)
+
# Some other minor tests
if(NOT HAVE_IN_ADDR_T)