File: FindSasl2.cmake

package info (click to toggle)
qca2 2.3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,884 kB
  • sloc: cpp: 59,224; ansic: 814; perl: 133; sh: 89; makefile: 34
file content (41 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# - Try to find the sasl2 directory library
# Once done this will define
#
#  SASL2_FOUND - system has SASL2
#  SASL2_INCLUDE_DIR - the SASL2 include directory
#  SASL2_LIBRARIES - The libraries needed to use SASL2
#
# Copyright (c) 2006, Laurent Montel, <montel@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.


if (SASL2_INCLUDE_DIR)
  # Already in cache, be silent
  set(SASL2_FIND_QUIETLY TRUE)
endif()

FIND_PATH(SASL2_INCLUDE_DIR sasl/sasl.h)

FIND_LIBRARY(SASL2_LIBRARIES NAMES sasl2)


if (SASL2_INCLUDE_DIR AND SASL2_LIBRARIES)
   set(SASL2_FOUND TRUE)
endif()


if (SASL2_FOUND)
   if (NOT Sasl2_FIND_QUIETLY)
     message(STATUS "Found Sasl2: ${SASL2_LIBRARIES}")
   endif()
else()
   if (Sasl2_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find sasl2 libraries")
   endif()
endif()


MARK_AS_ADVANCED(SASL2_INCLUDE_DIR SASL2_LIBRARIES)