Skip to content

Commit

Permalink
Merge pull request #5839 from leoetlino/more-warnings
Browse files Browse the repository at this point in the history
Externals/glslang: Silent even more warnings
  • Loading branch information
leoetlino committed Jul 29, 2017
2 parents 3b015f4 + a3a3bf9 commit 334e117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Externals/glslang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 334e117

Please sign in to comment.