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:
parent
d7294a714e
commit
83c5bdc95f
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue