Skip to content

Commit d92ab66

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)