The drogon project depends on hiredis, and hiredis, in turn, relies on the Windows sockets library (ws2_32).
As part of the build, there is an example executable, drogon_ctrl
, that demonstrates the usage of drogon.
In drogon_ctrl's camkeList.txt,add ws2_32 is unusuable.
target_link_libraries(drogon_ctrl PRIVATE ws2_32)
I tried to modify HiredisFind.camke,after then ill resolved.
if(MINGW)
target_link_libraries(Hiredis_lib INTERFACE ws2_32)
endif()
I'm not very proficient in CMake.I want to understand this behavior