]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not check libuuid anymore
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jul 2016 16:54:17 +0000 (00:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 25 Jul 2016 07:39:01 +0000 (15:39 +0800)
libuuid dependency is not found in ceph.spec.in or debian/control.
and we are not using libuuid since 62bfc7a.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/Findlibuuid.cmake [deleted file]

index 3b6b1e525235b8f8e0eb571a4a0576e9f686468c..ba7ce0817938557af2ae6c11fb8f4f7a7d39a44e 100644 (file)
@@ -292,8 +292,6 @@ if(NOT FREEBSD)
   find_package(keyutils REQUIRED)
 endif(NOT FREEBSD)
 
-find_package(libuuid REQUIRED)
-
 find_package(CURL REQUIRED)
 set(CMAKE_REQUIRED_INCLUDES ${CURL_INCLUDE_DIRS})
 set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBRARIES})
diff --git a/cmake/modules/Findlibuuid.cmake b/cmake/modules/Findlibuuid.cmake
deleted file mode 100644 (file)
index a2d1fbc..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-# Try to find libuuid
-# Once done, this will define
-#
-# UUID_FOUND - system has Profiler
-# UUID_INCLUDE_DIR - the Profiler include directories
-# UUID_LIBRARIES - link these to use Profiler
-
-if(UUID_INCLUDE_DIR AND UUID_LIBRARIES)
-       set(UUID_FIND_QUIETLY TRUE)
-endif(UUID_INCLUDE_DIR AND UUID_LIBRARIES)
-
-INCLUDE(CheckCXXSymbolExists)
-
-# include dir
-
-find_path(UUID_INCLUDE_DIR uuid.h NO_DEFAULT_PATH PATHS
-  /usr/include
-  /usr/include/uuid
-  /opt/local/include
-  /usr/local/include
-)
-
-
-# finally the library itself
-find_library(LIBUUID NAMES uuid)
-set(UUID_LIBRARIES ${LIBUUID})
-
-# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
-# all listed variables are TRUE
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(libuuid DEFAULT_MSG UUID_LIBRARIES UUID_INCLUDE_DIR)
-
-mark_as_advanced(UUID_LIBRARIES UUID_INCLUDE_DIR)