Merge pull request #5838 from stenzek/glslang-cmake-warnings
CMake: Use add_compile_options instead of add_definitions for glslang
This commit is contained in:
commit
3b015f4be5
|
@ -52,14 +52,15 @@ endif()
|
|||
|
||||
if(NOT MSVC)
|
||||
# glslang requires C++11 at a minimum to compile.
|
||||
add_definitions(-std=c++11)
|
||||
add_compile_options(-std=c++11)
|
||||
|
||||
# Silence some warnings that occur frequently to reduce noise in build logs.
|
||||
add_definitions(-Wno-shadow)
|
||||
add_definitions(-Wno-reorder)
|
||||
add_definitions(-Wno-sign-compare)
|
||||
add_definitions(-Wno-parentheses)
|
||||
add_definitions(-Wno-unused-variable)
|
||||
add_compile_options(-Wno-shadow)
|
||||
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)
|
||||
endif()
|
||||
|
||||
add_library(glslang STATIC ${SRCS})
|
||||
|
|
Loading…
Reference in New Issue