mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Only pass -Wno-unused-lambda-capture on clang 5 and above
This commit is contained in:
+4
-1
@@ -208,7 +208,6 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
-Wno-unused-parameter
|
||||
-Wno-unused-result
|
||||
-Wno-type-limits
|
||||
-Wno-unused-lambda-capture
|
||||
-Wno-missing-field-initializers
|
||||
-Wno-unknown-pragmas
|
||||
-Wno-reorder)
|
||||
@@ -222,6 +221,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)
|
||||
list(APPEND warning_flags -Wno-unused-lambda-capture)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
list(APPEND warning_flags -Werror)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user