cmake: rename invalidly named variables

parent 3ab29e12
......@@ -79,8 +79,11 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
check_library_exists("dl" "dlopen" "" HAVE_LIBDL)
check_library_exists(rt "clock_gettime" "" HAVE_LIBRT)
if (NOT HAVE_LIBRT)
check_library_exists(c "clock_gettime" "" HAVE_LIBRT)
if (HAVE_LIBRT)
set(HAVE_CLOCK_GETTIME 1)
else()
#might be defined in libc library as well
check_library_exists(c "clock_gettime" "" HAVE_CLOCK_GETTIME)
endif()
cmake_push_check_state(RESET)
......
......@@ -26,7 +26,7 @@
#define HAVE_LIBDL 1
/* Define to 1 if you have the `rt' library (-lrt). */
/* #undef HAVE_LIBRT */
/* #undef HAVE_CLOCK_GETTIME */
#define HAVE_ZLIB 1
......
......@@ -30,7 +30,7 @@
#cmakedefine VERSION "@VERSION@"
#cmakedefine HAVE_LIBDL
#cmakedefine HAVE_LIBRT
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_RESINIT
......
......@@ -24,7 +24,7 @@
#include "config.h"
#endif
#ifndef HAVE_LIBRT
#ifndef HAVE_CLOCK_GETTIME
typedef enum {
CLOCK_REALTIME,
CLOCK_MONOTONIC,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment