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>
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})