From 222ac4f657559fdadb62a20ef6f780bb9d87f341 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 4 Jun 2024 18:39:29 +0900 Subject: [PATCH] out_s3: windows: Link shell32.lib for creating nested directories Signed-off-by: Hiroshi Hatake --- plugins/out_s3/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/out_s3/CMakeLists.txt b/plugins/out_s3/CMakeLists.txt index 94e04861707..6492658ab72 100644 --- a/plugins/out_s3/CMakeLists.txt +++ b/plugins/out_s3/CMakeLists.txt @@ -3,4 +3,14 @@ set(src s3_store.c s3_multipart.c) +set(libs "") + +if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") + set(libs + ${libs} + Shell32.lib + Shlwapi.lib) +endif() + FLB_PLUGIN(out_s3 "${src}" "") +target_link_libraries(flb-plugin-out_s3 ${libs})