Skip to content

Commit d92ab66

Browse files
authored
fixed linker errors->mingw64 (#2411)
1 parent 7877fdc commit d92ab66

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmake_modules/FindHiredis.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ if(Hiredis_FOUND)
3838
"${HIREDIS_INCLUDE_DIRS}"
3939
INTERFACE_LINK_LIBRARIES
4040
"${HIREDIS_LIBRARIES}")
41-
endif(Hiredis_FOUND)
41+
endif(Hiredis_FOUND)
42+
43+
if(WIN32 AND MINGW)
44+
target_link_libraries(Hiredis_lib INTERFACE ws2_32 secur32 crypt32 bcrypt zstd curl shlwapi)
45+
endif()

0 commit comments

Comments
 (0)