Move cmake includes required by SelectRTBackend
authorFelix Morgner <felix.morgner@gmail.com>
Mon, 9 Nov 2015 08:34:36 +0000 (09:34 +0100)
committerFelix Morgner <felix.morgner@gmail.com>
Mon, 9 Nov 2015 08:42:22 +0000 (09:42 +0100)
CMakeLists.txt
cmake/Modules/SelectRTBackend.cmake

index 5ece93ee3512b85fd0697d8e2c7bf33c809484b6..9a089951764995f7cefe1d8f78f28463a4896412 100644 (file)
@@ -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)
 
index 0f2b07e1bc05dbe35702d913da14af07d0d6a31e..1ea6e60f15988d923a271ed0dd2c8b897fac96bd 100644 (file)
@@ -1,3 +1,6 @@
+include(CheckLibraryExists)
+include(CheckFunctionExists)
+
 function(SelectRTBackend)
   check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)