We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c683762 commit 335b912Copy full SHA for 335b912
2 files changed
tests/internal/CMakeLists.txt
@@ -66,6 +66,13 @@ if(FLB_OUT_AZURE_BLOB)
66
)
67
endif()
68
69
+if(FLB_OUT_PGSQL)
70
+ set(UNIT_TESTS_FILES
71
+ ${UNIT_TESTS_FILES}
72
+ pgsql.c
73
+ )
74
+endif()
75
+
76
# TLS helpers
77
if(FLB_TLS)
78
set(UNIT_TESTS_FILES
@@ -247,6 +254,11 @@ function(prepare_unit_tests TEST_PREFIX SOURCEFILES)
247
254
target_link_libraries(${source_file_we} flb-plugin-out_azure_blob)
248
255
249
256
257
+ if(FLB_OUT_PGSQL AND "${source_file_we}" STREQUAL "flb-it-pgsql")
258
+ target_link_libraries(${source_file_we} flb-plugin-out_pgsql)
259
+ target_include_directories(${source_file_we} PRIVATE ${PostgreSQL_INCLUDE_DIRS})
260
+ endif()
261
250
262
if(FLB_STREAM_PROCESSOR)
251
263
target_link_libraries(${source_file_we} flb-sp)
252
264
0 commit comments