1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

windows: msvc toolchain warnings to errors

This may cause some dust to start with since there are many
versions of msvc in use out there.
This commit is contained in:
Andy Green 2020-04-09 05:38:12 +01:00
parent d7294a714e
commit 83c5bdc95f

View file

@ -1773,6 +1773,11 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR COMPILER_IS_CLANG)
endif()
endif ()
if (MSVC)
# Fail the build if any warnings
add_compile_options(/W3 /WX)
endif()
if (LWS_PLAT_OPTEE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --sysroot ../../../../lib/libutils/isoc/include -I../../../../lib/libutils/isoc/include -I../../../../lib/libutils/ext/include" )
endif()