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:
Michael Fabian 'Xaymar' Dirks 2023-07-28 14:25:23 +02:00 committed by Xaymar
parent 8b97c2b23d
commit e82823d49c

View file

@ -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