diff --git a/renderdoc/driver/ihv/nv/CMakeLists.txt b/renderdoc/driver/ihv/nv/CMakeLists.txt index d579e7cda..7547b88a9 100644 --- a/renderdoc/driver/ihv/nv/CMakeLists.txt +++ b/renderdoc/driver/ihv/nv/CMakeLists.txt @@ -19,6 +19,13 @@ if(NOT ANDROID AND NOT APPLE) endif() endif() +if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 18.9) + set_property(SOURCE ${sources} ${sources_gl} ${sources_vulkan} + APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-cast-function-type-mismatch") + endif() +endif() + set(include_dirs ${RDOC_INCLUDES} "${CMAKE_CURRENT_SOURCE_DIR}/official/PerfSDK/redist/include"