From: Felix Morgner Date: Mon, 9 Nov 2015 08:34:36 +0000 (+0100) Subject: Move cmake includes required by SelectRTBackend X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=commitdiff_plain;h=ef87016c1b879f753c2832d5eba154780b1f8e72 Move cmake includes required by SelectRTBackend --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ece93e..9a08995 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,6 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release CACHE STRING "The type of build product that should be produced." FORCE) endif() -include(CheckLibraryExists) -include(CheckFunctionExists) include(SelectTLSBackend) include(SelectRTBackend) diff --git a/cmake/Modules/SelectRTBackend.cmake b/cmake/Modules/SelectRTBackend.cmake index 0f2b07e..1ea6e60 100644 --- a/cmake/Modules/SelectRTBackend.cmake +++ b/cmake/Modules/SelectRTBackend.cmake @@ -1,3 +1,6 @@ +include(CheckLibraryExists) +include(CheckFunctionExists) + function(SelectRTBackend) check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)