From 3831c232a80ca178b547c4f5db9b5b5d3182640e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 11 Aug 2013 19:49:33 +0200 Subject: Fix librt check --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a98adb..f7160eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,12 +52,12 @@ check_symbol_exists("clock_gettime" "time.h" HAVE_CLOCK_GETTIME) if(NOT HAVE_CLOCK_GETTIME) set(RT_LIBRARY "rt") - list(append CMAKE_REQUIRED_LIBRARIES "rt") + list(APPEND CMAKE_REQUIRED_LIBRARIES "rt") - check_symbol_exists("clock_gettime" "time.h" HAVE_CLOCK_GETTIME) - if(NOT HAVE_CLOCK_GETTIME) + check_symbol_exists("clock_gettime" "time.h" HAVE_CLOCK_GETTIME_RT) + if(NOT HAVE_CLOCK_GETTIME_RT) message(FATAL_ERROR "clock_gettime() not found") - endif(NOT HAVE_CLOCK_GETTIME) + endif(NOT HAVE_CLOCK_GETTIME_RT) endif(NOT HAVE_CLOCK_GETTIME) -- cgit v1.2.3