mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
base: Suppress deps warnings
/wd4267 is required by websocketpp -Wno-error=format-overflow is required by asio -Wno-error=null-pointer-subtraction is required by json on macOS -Wno-error=deprecated-declarations is required on macOS because Xcode 14 deprecates sprintf()
This commit is contained in:
parent
420e600864
commit
0db223b148
@ -144,6 +144,7 @@ endif()
|
|||||||
# Random other things
|
# Random other things
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
add_definitions(-D_WEBSOCKETPP_CPP11_STL_)
|
||||||
|
target_compile_options(obs-websocket PRIVATE /wd4267)
|
||||||
|
|
||||||
# Set the correct Windows preprocessor var for asio
|
# Set the correct Windows preprocessor var for asio
|
||||||
macro(get_WIN32_WINNT version)
|
macro(get_WIN32_WINNT version)
|
||||||
@ -161,7 +162,10 @@ if(WIN32)
|
|||||||
elseif(UNIX AND NOT APPLE)
|
elseif(UNIX AND NOT APPLE)
|
||||||
target_compile_options(
|
target_compile_options(
|
||||||
obs-websocket PRIVATE -Wall -Wextra -Wno-missing-field-initializers
|
obs-websocket PRIVATE -Wall -Wextra -Wno-missing-field-initializers
|
||||||
-Wno-variadic-macros)
|
-Wno-variadic-macros -Wno-error=format-overflow)
|
||||||
|
elseif(APPLE)
|
||||||
|
target_compile_options(
|
||||||
|
obs-websocket PRIVATE -Wno-error=null-pointer-subtraction -Wno-error=deprecated-declarations)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Final CMake helpers
|
# Final CMake helpers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user