mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
cmake: msvc: avoid having to use both preprocessor flags
https://github.com/warmcat/libwebsockets/issues/2600
This commit is contained in:
parent
b43866ffeb
commit
9c5fc9f3e4
1 changed files with 5 additions and 1 deletions
|
@ -897,7 +897,11 @@ if (MSVC)
|
||||||
# Fail the build if any warnings
|
# Fail the build if any warnings
|
||||||
add_compile_options(/W3 /WX)
|
add_compile_options(/W3 /WX)
|
||||||
# Unbreak MSVC broken preprocessor __VA_ARGS__ behaviour
|
# Unbreak MSVC broken preprocessor __VA_ARGS__ behaviour
|
||||||
add_compile_options(/Zc:preprocessor /experimental:preprocessor /wd5105)
|
if (MSVC_VERSION GREATER 1925)
|
||||||
|
add_compile_options(/Zc:preprocessor /wd5105)
|
||||||
|
else()
|
||||||
|
add_compile_options(/experimental:preprocessor /wd5105)
|
||||||
|
endif()
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
if (MINGW)
|
if (MINGW)
|
||||||
|
|
Loading…
Add table
Reference in a new issue