From dededfc9dea3336bd6879c67cbd154528fde26ae Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 4 May 2006 15:51:58 +0000 Subject: [PATCH] Search in cache svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=537363 --- cmake/modules/FindSane.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/modules/FindSane.cmake b/cmake/modules/FindSane.cmake index 180b47956..cf315dc80 100644 --- a/cmake/modules/FindSane.cmake +++ b/cmake/modules/FindSane.cmake @@ -5,6 +5,11 @@ # SANE_INCLUDE_DIR - the SANE include directory # SANE_LIBRARIES - The libraries needed to use SANE +if (SANE_INCLUDE_DIR) + # Already in cache, be silent + set(SANE_FIND_QUIETLY TRUE) +endif (SANE_INCLUDE_DIR) + FIND_PATH(SANE_INCLUDE_DIR sane/sane.h /usr/include /usr/local/include