mirror of
https://github.com/blender/blender
synced 2026-09-27 00:43:19 +03:00
./tools/utils_maintenance/code_clean failed to operate on any sources that used pre-compiled headers.
16 lines
469 B
CMake
16 lines
469 B
CMake
# SPDX-FileCopyrightText: 2006 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
if(WITH_LEGACY_OPENGL)
|
|
add_definitions(-DWITH_LEGACY_OPENGL)
|
|
endif()
|
|
|
|
if(WITH_CLANG_TIDY AND NOT MSVC)
|
|
find_package(ClangTidy REQUIRED)
|
|
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)
|