f3753f9bcd
./tools/utils_maintenance/code_clean failed to operate on any sources that used pre-compiled headers.
17 lines
469 B
CMake
17 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)
|