Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2022-05-06 16:21:54 +0300
committerSebastian Parborg <darkdefende@gmail.com>2022-05-06 16:26:54 +0300
commitf23f831e91424afe564573ef00b31984bcde6ec3 (patch)
tree00bde691945a15979d5d2f5e0c31b05e481a8c25 /source/CMakeLists.txt
parent763b8f14237fd534fc9ebd3a8ed82c57ca8b5463 (diff)
Clang-tidy: Don't warn about unrecognized compiler flags
When using GCC, clang-tidy will still use clang under the hood but GCC flags will still be passed. Therefore we will ignore any warnings about unrecognized flags as we don't care about this when running clang-tidy.
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r--source/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index ffc4d37f622..d0592e9a405 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -15,8 +15,9 @@ if(WITH_CLANG_TIDY AND NOT MSVC)
endif()
find_package(ClangTidy REQUIRED)
- set(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE})
- set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE})
+ set(CMAKE_C_CLANG_TIDY
+ ${CLANG_TIDY_EXECUTABLE};--extra-arg=-Wno-error=unknown-warning-option)
+ set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE};--extra-arg=-Wno-error=unknown-warning-option)
endif()
add_subdirectory(blender)