aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a67405a..37ef9c9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,8 +283,11 @@ endif()
283if(WIN32) 283if(WIN32)
284 set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) 284 set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32)
285endif() 285endif()
286check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
287if (HAVE_CLOCK_GETTIME)
288 add_definitions(-DHAVE_CLOCK_GETTIME)
289endif()
286if(CMAKE_SYSTEM_NAME MATCHES "Linux") 290if(CMAKE_SYSTEM_NAME MATCHES "Linux")
287 check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME)
288 if (HAVE_CLOCK_GETTIME) 291 if (HAVE_CLOCK_GETTIME)
289 set(OPENSSL_LIBS ${OPENSSL_LIBS} rt) 292 set(OPENSSL_LIBS ${OPENSSL_LIBS} rt)
290 endif() 293 endif()