Warning, /libraries/qca/cmake/modules/FindSasl2.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the sasl2 directory library
0002 # Once done this will define
0003 #
0004 # SASL2_FOUND - system has SASL2
0005 # SASL2_INCLUDE_DIR - the SASL2 include directory
0006 # SASL2_LIBRARIES - The libraries needed to use SASL2
0007 #
0008 # Copyright (c) 2006, Laurent Montel, <montel@kde.org>
0009 #
0010 # Redistribution and use is allowed according to the terms of the BSD license.
0011 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
0012
0013
0014 if (SASL2_INCLUDE_DIR)
0015 # Already in cache, be silent
0016 set(SASL2_FIND_QUIETLY TRUE)
0017 endif()
0018
0019 FIND_PATH(SASL2_INCLUDE_DIR sasl/sasl.h)
0020
0021 FIND_LIBRARY(SASL2_LIBRARIES NAMES sasl2)
0022
0023
0024 if (SASL2_INCLUDE_DIR AND SASL2_LIBRARIES)
0025 set(SASL2_FOUND TRUE)
0026 endif()
0027
0028
0029 if (SASL2_FOUND)
0030 if (NOT Sasl2_FIND_QUIETLY)
0031 message(STATUS "Found Sasl2: ${SASL2_LIBRARIES}")
0032 endif()
0033 else()
0034 if (Sasl2_FIND_REQUIRED)
0035 message(FATAL_ERROR "Could not find sasl2 libraries")
0036 endif()
0037 endif()
0038
0039
0040 MARK_AS_ADVANCED(SASL2_INCLUDE_DIR SASL2_LIBRARIES)
0041