mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Externals/glslang: Silent even more warnings
* -Wno-unused-but-set-variable: only set this flag with gcc, otherwise clang will issue warnings about the warning option being unknown :) (-Wunknown-warning-option) * -Wmissing-variable-declarations: clang warns about missing extern declarations for non-static variables.
This commit is contained in:
parent
3b015f4be5
commit
a3a3bf9144
6
Externals/glslang/CMakeLists.txt
vendored
6
Externals/glslang/CMakeLists.txt
vendored
@ -60,7 +60,11 @@ add_compile_options(-Wno-reorder)
|
||||
add_compile_options(-Wno-sign-compare)
|
||||
add_compile_options(-Wno-parentheses)
|
||||
add_compile_options(-Wno-unused-variable)
|
||||
add_compile_options(-Wno-unused-but-set-variable)
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
add_compile_options(-Wno-unused-but-set-variable)
|
||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
add_compile_options(-Wno-missing-variable-declarations)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(glslang STATIC ${SRCS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user