Skip to content

Commit

Permalink
build: don't build flb_http_client and flb_oauth2 when FLB_TLS=Off
Browse files Browse the repository at this point in the history
This fixes the "cannot open mbedtls/base64.h" error at compile
time when FLB_TLS is disabled.

Essentially, both source files depend on mbedtls and cannot be
compiled without TLS support.

Signed-off-by: Fujimoto Seiji <[email protected]>
  • Loading branch information
Fujimoto Seiji committed Dec 20, 2018
1 parent 4995c58 commit 63a9553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ set(src
flb_upstream_ha.c
flb_upstream_node.c
flb_router.c
flb_oauth2.c
flb_http_client.c
flb_worker.c
flb_time.c
flb_sosreport.c
Expand Down Expand Up @@ -68,6 +66,8 @@ if(FLB_TLS)
set(src
${src}
"flb_io_tls.c"
"flb_oauth2.c"
"flb_http_client.c"
)

# Make sure our output targets links to the TLS library
Expand Down

0 comments on commit 63a9553

Please sign in to comment.