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:
authorRay Molenkamp <github@lazydodo.com>2020-12-03 21:00:58 +0300
committerRay Molenkamp <github@lazydodo.com>2020-12-03 21:00:58 +0300
commitf637b47064237683343f00190a1438638058e92e (patch)
tree138ef03a813db5b465a458e72c76e105d58a2321 /source/CMakeLists.txt
parent769818f7f44341511f17925f41535a06f2224558 (diff)
MSVC: Enable clang-tidy analyser
This enables the use of clang-tidy in the VS IDE. To use it: 1 - Enable WITH_CLANG_TIDY in your cmake configuration 2 - From the Analyse pull down menu select Run Code Analysis on... The analyser is currently not enabled by default on build given it is quite slow and there are quite a few problems it reports that we still need to deal with.
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 88c19355960..0ce2341fc2e 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -22,7 +22,7 @@ if(WITH_LEGACY_OPENGL)
add_definitions(-DWITH_LEGACY_OPENGL)
endif()
-if(WITH_CLANG_TIDY)
+if(WITH_CLANG_TIDY AND NOT MSVC)
if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
message(WARNING "Currently Clang-Tidy might fail with GCC toolchain, switch to Clang toolchain if that happens")
endif()