mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
26 lines
792 B
CMake
26 lines
792 B
CMake
# - Try to find the GNU sasl library (gsasl)
|
|
#
|
|
# Once done this will define
|
|
#
|
|
# GSASL_FOUND - System has gnutls
|
|
# GSASL_INCLUDE_DIR - The gnutls include directory
|
|
# GSASL_LIBRARIES - The libraries needed to use gnutls
|
|
# GSASL_DEFINITIONS - Compiler switches required for using gnutls
|
|
|
|
|
|
IF (GSASL_INCLUDE_DIR AND GSASL_LIBRARIES)
|
|
# in cache already
|
|
SET(GSasl_FIND_QUIETLY TRUE)
|
|
ENDIF (GSASL_INCLUDE_DIR AND GSASL_LIBRARIES)
|
|
|
|
FIND_PATH(GSASL_INCLUDE_DIR gsasl.h)
|
|
|
|
FIND_LIBRARY(GSASL_LIBRARIES gsasl)
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set GSASL_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSASL DEFAULT_MSG GSASL_LIBRARIES GSASL_INCLUDE_DIR)
|
|
|
|
MARK_AS_ADVANCED(GSASL_INCLUDE_DIR GSASL_LIBRARIES) |