From ef87016c1b879f753c2832d5eba154780b1f8e72 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 9 Nov 2015 09:34:36 +0100 Subject: [PATCH] Move cmake includes required by SelectRTBackend --- CMakeLists.txt | 2 -- cmake/Modules/SelectRTBackend.cmake | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 2.30.2