mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
cmake: link against shell32.lib/advapi32.lib
Fixes: #844 Refs: #760 (cmake-vs-autotools) (cherry picked from commit 69466cde0382ab3df12e3a011720f87af3998081)
This commit is contained in:
parent
3660a4cc23
commit
c9ce638c84
@ -322,7 +322,7 @@ endif()
|
||||
# Winsock.
|
||||
if(WIN32)
|
||||
set(CMAKE_EXTRA_INCLUDE_FILES winsock2.h ws2tcpip.h)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ws2_32.lib)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ws2_32.lib shell32.lib advapi32.lib)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS -FIwinsock2.h -FIws2tcpip.h)
|
||||
endif()
|
||||
if (SOLARIS)
|
||||
@ -873,7 +873,7 @@ if(WIN32)
|
||||
list(APPEND HDR_PRIVATE WIN32-Code/getopt.h)
|
||||
|
||||
set(EVENT__DNS_USE_FTIME_FOR_ID 1)
|
||||
set(LIB_PLATFORM ws2_32)
|
||||
set(LIB_PLATFORM ws2_32 shell32 advapi32)
|
||||
add_definitions(
|
||||
-D_CRT_SECURE_NO_WARNINGS
|
||||
-D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user