mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
This PR fixes the compilation problems when building Cycles without OSL support and some Windows-related compile problems caused by the '_USE_MATH_DEFINES' define. The PR: - Adds the cycles_util dependencies to the cycles cpu module. - Adds the `_USE_MATH_DEFINES` as a global compiler definition when building under Windows. - Removes unneed setting and definitions of `_USE_MATH_DEFINES` in the code and CMake files Pull Request: https://projects.blender.org/blender/blender/pulls/154209
32 lines
540 B
CMake
32 lines
540 B
CMake
# SPDX-FileCopyrightText: 2006 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
intern
|
|
../memutil
|
|
)
|
|
|
|
set(INC_SYS
|
|
)
|
|
|
|
set(SRC
|
|
intern/IK_QJacobian.cpp
|
|
intern/IK_QJacobianSolver.cpp
|
|
intern/IK_QSegment.cpp
|
|
intern/IK_QTask.cpp
|
|
intern/IK_Solver.cpp
|
|
|
|
extern/IK_solver.h
|
|
intern/IK_Math.h
|
|
intern/IK_QJacobian.h
|
|
intern/IK_QJacobianSolver.h
|
|
intern/IK_QSegment.h
|
|
intern/IK_QTask.h
|
|
)
|
|
|
|
set(LIB
|
|
PRIVATE bf::dependencies::eigen
|
|
)
|
|
|
|
blender_add_lib(bf_intern_iksolver "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|