79503956

Date: 2025-03-12 14:57:20
Score: 1.5
Natty:
Report link

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

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: HanWang