diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a67405a..03c87a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -283,6 +283,12 @@ endif() | |||
283 | if(WIN32) | 283 | if(WIN32) |
284 | set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) | 284 | set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) |
285 | endif() | 285 | endif() |
286 | |||
287 | check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) | ||
288 | if(HAVE_CLOCK_GETTIME) | ||
289 | add_definitions(-DHAVE_CLOCK_GETTIME) | ||
290 | endif() | ||
291 | |||
286 | if(CMAKE_SYSTEM_NAME MATCHES "Linux") | 292 | if(CMAKE_SYSTEM_NAME MATCHES "Linux") |
287 | check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME) | 293 | check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME) |
288 | if (HAVE_CLOCK_GETTIME) | 294 | if (HAVE_CLOCK_GETTIME) |