mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
cmake: Explicitly disable treating warnings as errors
As libOBS and OBS Studio unfortunately enforce treating warnings as errors, it is necessary to do the opposite. This may remove the need of having a patch for this exist at all, but I'll leave it be for now and just add this single line fix.
This commit is contained in:
parent
8b97c2b23d
commit
e82823d49c
1 changed files with 2 additions and 0 deletions
|
@ -1694,6 +1694,8 @@ if(D_PLATFORM_WINDOWS AND ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR (CMAKE_CXX
|
||||||
|
|
||||||
# - Treat Warnings as Errors
|
# - Treat Warnings as Errors
|
||||||
target_compile_options(${PROJECT_NAME} PRIVATE "/Wall")
|
target_compile_options(${PROJECT_NAME} PRIVATE "/Wall")
|
||||||
|
# - Explicitly disable treating all Warnings as Errors
|
||||||
|
target_compile_options(${PROJECT_NAME} PRIVATE "/WX-")
|
||||||
|
|
||||||
# - Disable useless warnings
|
# - Disable useless warnings
|
||||||
set(DISABLED_WARNINGS
|
set(DISABLED_WARNINGS
|
||||||
|
|
Loading…
Reference in a new issue