mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Fix Xcode 13.3 and Clang 13.x compile errors
Disable warnings -Wunused-but-set-variable -Wdeprecated-copy
This commit is contained in:
committed by
Baldur Karlsson
parent
308456535f
commit
f01a4df484
@@ -402,6 +402,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
list(APPEND warning_flags -Wno-unused-lambda-capture)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
|
||||
list(APPEND warning_flags -Wno-unused-but-set-variable -Wno-deprecated-copy)
|
||||
endif()
|
||||
|
||||
if(NOT RELEASE_MODE)
|
||||
list(APPEND warning_flags -Werror)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user