aboutsummaryrefslogtreecommitdiff
path: root/modules/FindSasl2.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2010-09-26 16:38:25 +0000
committerAlexander Neundorf <neundorf@kde.org>2010-09-26 16:38:25 +0000
commiteb2dd953289c2cf3151b1badda8afe6e5458024d (patch)
treed7082ee70b8cbb337ad9c5cc8c74c059a1093810 /modules/FindSasl2.cmake
parent1f3daef3b1aa4a8797fca19cdc6a8146c8f3658f (diff)
downloadextra-cmake-modules-eb2dd953289c2cf3151b1badda8afe6e5458024d.tar.gz
extra-cmake-modules-eb2dd953289c2cf3151b1badda8afe6e5458024d.tar.bz2
-consistent upper/lowercasing
-remove the unnecessary if(already found) set(QUIET TRUE), since this is already handled by find_package_handle_standard_args() Alex svn path=/trunk/KDE/kdelibs/; revision=1179961
Diffstat (limited to 'modules/FindSasl2.cmake')
-rw-r--r--modules/FindSasl2.cmake13
1 files changed, 4 insertions, 9 deletions
diff --git a/modules/FindSasl2.cmake b/modules/FindSasl2.cmake
index 787b578c..9fe12ea2 100644
--- a/modules/FindSasl2.cmake
+++ b/modules/FindSasl2.cmake
@@ -11,21 +11,16 @@
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-if (SASL2_INCLUDE_DIR)
- # Already in cache, be silent
- set(SASL2_FIND_QUIETLY TRUE)
-endif (SASL2_INCLUDE_DIR)
-
-FIND_PATH(SASL2_INCLUDE_DIR sasl/sasl.h
+find_path(SASL2_INCLUDE_DIR sasl/sasl.h
)
# libsasl2 add for windows, because the windows package of cyrus-sasl2
# contains a libsasl2 also for msvc which is not standard conform
-FIND_LIBRARY(SASL2_LIBRARIES NAMES sasl2 libsasl2
+find_library(SASL2_LIBRARIES NAMES sasl2 libsasl2
)
include(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(Sasl2 DEFAULT_MSG SASL2_INCLUDE_DIR SASL2_LIBRARIES)
+find_package_handle_standard_args(Sasl2 DEFAULT_MSG SASL2_LIBRARIES SASL2_INCLUDE_DIR)
-MARK_AS_ADVANCED(SASL2_INCLUDE_DIR SASL2_LIBRARIES)
+mark_as_advanced(SASL2_INCLUDE_DIR SASL2_LIBRARIES)