]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: search for Keyutils in default paths and cleanup 12769/head
authorPascal Bach <pasci.bach@gmail.com>
Sun, 1 Jan 2017 22:38:59 +0000 (23:38 +0100)
committerPascal Bach <pascal.bach@nextrem.ch>
Wed, 4 Jan 2017 11:47:17 +0000 (12:47 +0100)
This makes it more portable

Remove /usr/include as it is searched by find_path anyway.
Remove unnecessary include that weren't used.

Signed-off-by: Pascal Bach <pascal.bach@nextrem.ch>
cmake/modules/Findkeyutils.cmake

index 15a07d60bf6d027f3152d4a584a1d0501deeb8e0..e34be8b5eb4490e203e74069e50da977e005953f 100644 (file)
@@ -9,17 +9,12 @@ if(KEYUTILS_INCLUDE_DIR AND KEYUTILS_LIBRARIES)
        set(KEYUTILS_FIND_QUIETLY TRUE)
 endif(KEYUTILS_INCLUDE_DIR AND KEYUTILS_LIBRARIES)
 
-INCLUDE(CheckCXXSymbolExists)
-
 # include dir
-
-find_path(KEYUTILS_INCLUDE_DIR keyutils.h NO_DEFAULT_PATH PATHS
-  /usr/include
+find_path(KEYUTILS_INCLUDE_DIR keyutils.h PATHS
   /opt/local/include
   /usr/local/include
 )
 
-
 # finally the library itself
 find_library(LIBKEYUTILS NAMES keyutils)
 set(KEYUTILS_LIBRARIES ${LIBKEYUTILS})