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:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 11:56:10 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-07-03 11:58:24 +0300
commitedb49d3dc2e3a2bd3048cfdb55562fb853f37a21 (patch)
tree582a71c9065d7051b3f4e9ab85fd616f2d3f07bf /source/CMakeLists.txt
parentdfdd23bae6b3361111ded70c811a7ec86f4d76a9 (diff)
Clang-Tidy: Allow use with GCC but warn about possible failure
The compilation using GCC + Clang-Tidy succeeded for me and Sybren (with some linker caveats for Sybren) but seems that it is doable to make GCC + Clang-Tidy to officially work for Blender. Now it should be possible to enable Clang-Tidy doing something like make developer debug BUILD_CMAKE_ARGS='-DWITH_CLANG_TIDY=ON'
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r--source/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index c460a5e340b..88c19355960 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -24,7 +24,7 @@ endif()
if(WITH_CLANG_TIDY)
if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
- message(FATAL_ERROR "Currently Clang-Tidy is only supported when using Clang compiler")
+ message(WARNING "Currently Clang-Tidy might fail with GCC toolchain, switch to Clang toolchain if that happens")
endif()
find_package(ClangTidy REQUIRED)