Making it work on windows??

This commit is contained in:
TraYali 2024-03-20 15:15:46 +01:00
parent 3c37cfd65f
commit 775b4d2ac8

View file

@ -14,4 +14,5 @@ add_executable(hoymilesClient_exec ${SOURCES})
if(WIN32)
# find_library(ws2_32_library NAMES libws2_32.a HINTS /usr/x86_64-w64-mingw32/lib)
target_link_libraries(hoymilesClient_exec "/usr/x86_64-w64-mingw32/lib/libws2_32.a")
set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES}-static-libgcc -static-lstdc++ -lwsock32 -lw2_32")
endif(WIN32)