diff options
author | David Faure <faure@kde.org> | 2006-04-18 11:22:38 +0000 |
---|---|---|
committer | David Faure <faure@kde.org> | 2006-04-18 11:22:38 +0000 |
commit | 2b43aad081d13bdeb2ed8a65f65fbecfb470da0d (patch) | |
tree | 405e268ae2040a0266b2921ea2fa3ce8ffaded57 /modules/FindLibXml2.cmake | |
parent | f0436915e149f27532c6aece815e3169794dc72b (diff) | |
download | extra-cmake-modules-2b43aad081d13bdeb2ed8a65f65fbecfb470da0d.tar.gz extra-cmake-modules-2b43aad081d13bdeb2ed8a65f65fbecfb470da0d.tar.bz2 |
More use of the cache; fixing previous commit to not recheck everytime when something isn't available (e.g. agg for me).
svn path=/trunk/KDE/kdelibs/; revision=531000
Diffstat (limited to 'modules/FindLibXml2.cmake')
-rw-r--r-- | modules/FindLibXml2.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/FindLibXml2.cmake b/modules/FindLibXml2.cmake index b7914be1..2e671eea 100644 --- a/modules/FindLibXml2.cmake +++ b/modules/FindLibXml2.cmake @@ -6,14 +6,14 @@ # LIBXML2_LIBRARIES - the libraries needed to use LibXml2 # LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2 -IF (CACHED_LIBXML2) +IF (DEFINED CACHED_LIBXML2) # in cache already IF ("${CACHED_LIBXML2}" STREQUAL "YES") SET(LIBXML2_FOUND TRUE) ENDIF ("${CACHED_LIBXML2}" STREQUAL "YES") -ELSE (CACHED_LIBXML2) +ELSE (DEFINED CACHED_LIBXML2) IF (NOT WIN32) # use pkg-config to get the directories and then use these values @@ -55,4 +55,4 @@ ELSE (CACHED_LIBXML2) SET(CACHED_LIBXML2 ${CACHED_LIBXML2} CACHE INTERNAL "If libxml2 was checked") -ENDIF (CACHED_LIBXML2) +ENDIF (DEFINED CACHED_LIBXML2) |