Skip to content

Commit

Permalink
out_s3: windows: Link shell32.lib for creating nested directories
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Jun 4, 2024
1 parent d3e2aa3 commit 222ac4f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/out_s3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 222ac4f

Please sign in to comment.