summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/plugins/filter_geoip2/CMakeLists.txt
blob: b33799e79895bb537262696ff98f561c8b73e488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# libmaxminddb

# The subdirectory 'libmaxminddb' was imported from the following repo.
# (The minimum set of files required to compile geoip2.c were imported)
#
# https://github.com/maxmind/libmaxminddb
#
# We keep the exact version in the file 'libmaxminddb/VERSION',
# Please update the content when you upgrade libmaxminddb.
#
option(BUILD_TESTING "" OFF)
set(CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
add_subdirectory(libmaxminddb EXCLUDE_FROM_ALL)
include_directories(libmaxminddb/include/)

set(src
  geoip2.c)

FLB_PLUGIN(filter_geoip2 "${src}" "maxminddb")