build: Disable warnings in third-party code (#1353)
We already disabled warnings-as-errors in third-party code, but this goes futher to completely disable third-party warnings. They are mostly noise, and distracting. If they aren't errors, we shouldn't have our build logs flooded with them.
This commit is contained in:
parent
6276584de7
commit
673e49d2bb
|
@ -31,6 +31,9 @@ else()
|
||||||
# Surprisingly, both of these are required to satisfy various platforms and
|
# Surprisingly, both of these are required to satisfy various platforms and
|
||||||
# compilers at once.
|
# compilers at once.
|
||||||
add_compile_options(-Wno-error -Wno-error=all)
|
add_compile_options(-Wno-error -Wno-error=all)
|
||||||
|
# Hide warnings in third-party code. The noise isn't helpful, and this line
|
||||||
|
# can be commented out if we ever want to see/audit third-party warnings.
|
||||||
|
add_compile_options(-w)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# These all use EXCLUDE_FROM_ALL so that only the referenced targets get built.
|
# These all use EXCLUDE_FROM_ALL so that only the referenced targets get built.
|
||||||
|
|
Loading…
Reference in New Issue