CMake: Disable warnings on third-party projects
This commit is contained in:
1 parent
34aa419e92
commit
e6bfcf22d9
3 files changed
+32
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user