aboutsummaryrefslogtreecommitdiff
path: root/modules/FindSane.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindSane.cmake')
-rw-r--r--modules/FindSane.cmake13
1 files changed, 3 insertions, 10 deletions
diff --git a/modules/FindSane.cmake b/modules/FindSane.cmake
index 6c60cf63..64efa87a 100644
--- a/modules/FindSane.cmake
+++ b/modules/FindSane.cmake
@@ -9,20 +9,13 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-if (SANE_INCLUDE_DIR AND SANE_LIBRARY)
- # Already in cache, be silent
- set(Sane_FIND_QUIETLY TRUE)
-endif (SANE_INCLUDE_DIR AND SANE_LIBRARY)
-
FIND_PATH(SANE_INCLUDE_DIR sane/sane.h)
FIND_LIBRARY(SANE_LIBRARY NAMES sane libsane
- PATHS
- /usr/lib/sane
- /usr/local/lib/sane
+ PATH_SUFFIXES sane
)
-include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sane DEFAULT_MSG SANE_INCLUDE_DIR SANE_LIBRARY )
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sane DEFAULT_MSG SANE_LIBRARY SANE_INCLUDE_DIR )
MARK_AS_ADVANCED(SANE_INCLUDE_DIR SANE_LIBRARY)