diff --git a/cmake/windows-setup.cmake b/cmake/windows-setup.cmake index 252ff3ba6b6..ba5f14017b0 100644 --- a/cmake/windows-setup.cmake +++ b/cmake/windows-setup.cmake @@ -60,7 +60,7 @@ set(FLB_OUT_STDOUT Yes) set(FLB_OUT_LIB No) set(FLB_OUT_NULL Yes) set(FLB_OUT_FLOWCOUNTER Yes) -set(FLB_OUT_KAFKA No) +set(FLB_OUT_KAFKA Yes) set(FLB_OUT_KAFKA_REST No) # FILTER plugins diff --git a/plugins/out_kafka/CMakeLists.txt b/plugins/out_kafka/CMakeLists.txt index f46bc3971cc..34128cff443 100644 --- a/plugins/out_kafka/CMakeLists.txt +++ b/plugins/out_kafka/CMakeLists.txt @@ -14,4 +14,6 @@ set(src kafka.c) FLB_PLUGIN(out_kafka "${src}" "rdkafka") -target_link_libraries(flb-plugin-out_kafka -lpthread) +if (NOT MSVC) + target_link_libraries(flb-plugin-out_kafka -lpthread) +endif()