mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-04-01 06:09:49 +00:00
chore(server): link winsock2 for non-MSVC windows (#1378)
This commit is contained in:
parent
1d6cb0f8c3
commit
4d5232083f
@ -70,4 +70,10 @@ endif()
|
|||||||
|
|
||||||
install(TARGETS ${TARGET} RUNTIME)
|
install(TARGETS ${TARGET} RUNTIME)
|
||||||
target_link_libraries(${TARGET} PRIVATE stable-diffusion ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(${TARGET} PRIVATE stable-diffusion ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
|
||||||
|
# due to httplib; it contains a pragma for MSVC, but other things need explicit flags
|
||||||
|
if(WIN32 AND NOT MSVC)
|
||||||
|
target_link_libraries(${TARGET} PRIVATE ws2_32)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_compile_features(${TARGET} PUBLIC c_std_11 cxx_std_17)
|
target_compile_features(${TARGET} PUBLIC c_std_11 cxx_std_17)
|
||||||
Loading…
x
Reference in New Issue
Block a user