summaryrefslogtreecommitdiffstats
path: root/fluent-bit/lib/librdkafka-2.1.0/packaging/cmake/Config.cmake.in
blob: 8a6522b06839051f6325f89384fb48aaa790ed53 (plain)
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
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

if(@WITH_ZLIB@)
  find_dependency(ZLIB)
endif()

if(@WITH_CURL@)
  find_dependency(CURL)
endif()

if(@WITH_ZSTD@)
  find_library(ZSTD zstd)
  if(NOT ZSTD)
    message(ERROR "ZSTD library not found!")
  else()
    message(STATUS "Found ZSTD: " ${ZSTD})
  endif()
endif()

if(@WITH_SSL@)
  if(@WITH_BUNDLED_SSL@)
    # TODO: custom SSL library should be installed
  else()
    find_dependency(OpenSSL)
  endif()
endif()

if(@WITH_LZ4_EXT@)
  find_dependency(LZ4)
endif()

find_dependency(Threads)

include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
check_required_components("@PROJECT_NAME@")