CMake: Disable warnings on third-party projects

This commit is contained in:
Stenzek
2023-09-30 15:39:52 +10:00
parent 34aa419e92
commit e6bfcf22d9
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,7 @@
function(disable_compiler_warnings_for_target target)
if(MSVC)
target_compile_options(${target} PRIVATE "/W0")
else()
target_compile_options(${target} PRIVATE "-w")
endif()
endfunction()