miniupnpc/cmake: add _WINSOCK_DEPRECATED_NO_WARNINGS definition

This commit is contained in:
scribam 2022-01-04 19:32:39 +01:00
parent 1f46c250d9
commit bcaee022a3
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ endif ()
# Suppress noise warnings
if (MSVC)
target_compile_definitions(miniupnpc-private INTERFACE _CRT_SECURE_NO_WARNINGS)
target_compile_definitions(miniupnpc-private INTERFACE _CRT_SECURE_NO_WARNINGS _WINSOCK_DEPRECATED_NO_WARNINGS)
endif()
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/miniupnpcstrings.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/miniupnpcstrings.h)