From 9a75f145de53a04eca02dd5da5c2ab092f67d2f0 Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 20 Apr 2006 12:25:46 +0000 Subject: OK so FIND_PATH and FIND_LIBRARIES use the cache already, so no need for the CACHED_FOO fast-path when the check only uses those. Instead I used this, to avoid "Found libfoo" in the output when in fact we didn't just look for it, we had it in the cache. +if (TIFF_INCLUDE_DIR) + # Already in cache, be silent + set(TIFF_FIND_QUIETLY TRUE) +endif (TIFF_INCLUDE_DIR) CACHED_FOO remains for the cases where there is more logic to the configure check, like PKGCONFIG, foo-config, or CHECK_LIBRARY_EXISTS (e.g. bzip2) CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=531839 --- modules/FindHSPELL.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/FindHSPELL.cmake') diff --git a/modules/FindHSPELL.cmake b/modules/FindHSPELL.cmake index ba8b21aa..0a029fb8 100644 --- a/modules/FindHSPELL.cmake +++ b/modules/FindHSPELL.cmake @@ -7,6 +7,11 @@ # HSPELL_DEFINITIONS - Compiler switches required for using HSPELL # +if (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES) + # Already in cache, be silent + set(HSPELL_FIND_QUIETLY TRUE) +endif (HSPELL_INCLUDE_DIR AND HSPELL_LIBRARIES) + FIND_PATH(HSPELL_INCLUDE_DIR hspell.h /usr/include -- cgit v1.2.1