build: rename static library name for Windows env
@@ -156,9 +156,11 @@ endif()
add_library(fluent-bit-static STATIC ${src})
target_link_libraries(fluent-bit-static ${FLB_DEPS})
-set_target_properties(fluent-bit-static PROPERTIES OUTPUT_NAME fluent-bit)
if(MSVC)
- set_target_properties(fluent-bit-static PROPERTIES IMPORT_SUFFIX .lib)
+ # Rename the output for Windows environment to avoid naming issues
+ set_target_properties(fluent-bit-static PROPERTIES OUTPUT_NAME libfluent-bit)
+else()
+ set_target_properties(fluent-bit-static PROPERTIES OUTPUT_NAME fluent-bit)
endif(MSVC)
if(FLB_JEMALLOC)
