aboutsummaryrefslogtreecommitdiff
path: root/modules/FindASPELL.cmake
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2006-04-20 12:25:46 +0000
committerDavid Faure <faure@kde.org>2006-04-20 12:25:46 +0000
commit9a75f145de53a04eca02dd5da5c2ab092f67d2f0 (patch)
tree246e6e63b638374354d3496365be8b0064397a11 /modules/FindASPELL.cmake
parent672022196187fa0d0b412c01f70de04b3827bbaf (diff)
downloadextra-cmake-modules-9a75f145de53a04eca02dd5da5c2ab092f67d2f0.tar.gz
extra-cmake-modules-9a75f145de53a04eca02dd5da5c2ab092f67d2f0.tar.bz2
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
Diffstat (limited to 'modules/FindASPELL.cmake')
-rw-r--r--modules/FindASPELL.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/FindASPELL.cmake b/modules/FindASPELL.cmake
index 9d856c60..0333de0c 100644
--- a/modules/FindASPELL.cmake
+++ b/modules/FindASPELL.cmake
@@ -7,6 +7,10 @@
# ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
#
+if (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
+ # Already in cache, be silent
+ set(ASPELL_FIND_QUIETLY TRUE)
+endif (ASPELL_INCLUDE_DIR AND ASPELL_LIBRARIES)
FIND_PATH(ASPELL_INCLUDE_DIR aspell.h
/usr/include