Changeset View
Changeset View
Standalone View
Standalone View
source/CMakeLists.txt
| Show All 17 Lines | |||||
| # All rights reserved. | # All rights reserved. | ||||
| # ***** END GPL LICENSE BLOCK ***** | # ***** END GPL LICENSE BLOCK ***** | ||||
| if(WITH_LEGACY_OPENGL) | if(WITH_LEGACY_OPENGL) | ||||
| add_definitions(-DWITH_LEGACY_OPENGL) | add_definitions(-DWITH_LEGACY_OPENGL) | ||||
| endif() | endif() | ||||
| if(WITH_CLANG_TIDY) | if(WITH_CLANG_TIDY) | ||||
| if(WIN32) | |||||
| message(WARNING "Clang-Tidy support on windows is experimental.") | |||||
| else() | |||||
| if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang") | 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") | message(WARNING "Currently Clang-Tidy might fail with GCC toolchain, switch to Clang toolchain if that happens") | ||||
| endif() | endif() | ||||
| endif() | |||||
| find_package(ClangTidy REQUIRED) | find_package(ClangTidy REQUIRED) | ||||
| set(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE}) | set(CMAKE_C_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE}) | ||||
| set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE}) | set(CMAKE_CXX_CLANG_TIDY ${CLANG_TIDY_EXECUTABLE}) | ||||
| endif() | endif() | ||||
| add_subdirectory(blender) | add_subdirectory(blender) | ||||