get cmake to compile under windows with ms cl compiler

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Simon Goldschmidt 2023-01-03 21:34:05 +01:00
parent eaf4926239
commit 3fe8d2fc43
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
set(LWIP_COMPILER_FLAGS set(LWIP_COMPILER_FLAGS
$<$<CONFIG:Debug>:/Od> $<$<CONFIG:Debug>:/Od>
$<$<CONFIG:Release>:/Ox> $<$<CONFIG:Release>:/Ox>
/Wall /W4
/WX /WX
) )
endif() endif()

View File

@ -30,8 +30,8 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
else() else()
set(WPDPACK_LIB_DIR ${WPDPACK_DIR}/lib) set(WPDPACK_LIB_DIR ${WPDPACK_DIR}/lib)
endif() endif()
set(WPCAP ${WPDPACK_DIR}/lib/x64/wpcap.lib) set(WPCAP ${WPDPACK_LIB_DIR}/wpcap.lib)
set(PACKET ${WPDPACK_DIR}/lib/x64/packet.lib) set(PACKET ${WPDPACK_LIB_DIR}/packet.lib)
else() else()
find_library(WPCAP wpcap HINTS ${WPDPACK_DIR}/lib/x64) find_library(WPCAP wpcap HINTS ${WPDPACK_DIR}/lib/x64)
find_library(PACKET packet HINTS ${WPDPACK_DIR}/lib/x64) find_library(PACKET packet HINTS ${WPDPACK_DIR}/lib/x64)