mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Disable -Wunused-lambda-capture which complains about nonsense sometimes
This commit is contained in:
@@ -207,6 +207,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0 AND NOT APPLE)
|
||||
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