From 2880b24116fd5d01dc77634a95399b0d7701053e Mon Sep 17 00:00:00 2001 From: Flamefire Date: Sun, 27 Apr 2025 16:38:23 +0200 Subject: [PATCH] CMake: Disable Clang warning `inconsistent-missing-override` --- test/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 486fdb7..c6974ad 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,6 +20,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" if(TURTLE_CXX_UNUSED_FUNCTION) target_compile_options(TurtleTestMain INTERFACE -Wno-unused-function) endif() + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + target_compile_options(TurtleTestMain INTERFACE -Wno-inconsistent-missing-override) + endif() if(TURTLE_WERROR) check_cxx_compiler_flag(-Wdeprecated-declarations TURTLE_CXX_DEPRECATED_DECLARATIONS) if(TURTLE_CXX_DEPRECATED_DECLARATIONS)