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:
-rw-r--r--source/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 0ce2341fc2e..6c2cbb5df33 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -25,6 +25,10 @@ endif()
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")
+ if(COMMAND target_precompile_headers)
+ message(STATUS "Clang-Tidy and GCC precompiled headers are incompatible, disabling precompiled headers")
+ set(CMAKE_DISABLE_PRECOMPILE_HEADERS On)
+ endif()
endif()
find_package(ClangTidy REQUIRED)