Skip to content

Commit

Permalink
cmake: Explicitly disable treating warnings as errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Xaymar committed Jul 28, 2023
1 parent 8b97c2b commit 8e31902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,8 @@ if(D_PLATFORM_WINDOWS AND ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR (CMAKE_CXX

# - Treat Warnings as Errors
target_compile_options(${PROJECT_NAME} PRIVATE "/Wall")
# - Explicitly disable treating all Warnings as Errors
target_compile_options(${PROJECT_NAME} PRIVATE "/WX-")

# - Disable useless warnings
set(DISABLED_WARNINGS
Expand Down

0 comments on commit 8e31902

Please sign in to comment.