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:
authorLazydodo <github@lazydodo.com>2019-08-21 19:38:33 +0300
committerLazydodo <github@lazydodo.com>2019-08-21 19:38:33 +0300
commit6086a6d9399e42c3e88b39e5658af9a2ed06cac5 (patch)
tree805918ccc528fb73b8917b73e5c28314970f8dea /intern/iksolver
parent34921e9e5671df4f8932ba671ee5703ca4739ecb (diff)
Cleanup: Fix build error with MSVC
Previously eigens internal include order somehow implicitly provided M_PI and friends. The recent eigen version bump broke this implicit behaviour, better to be explicit that we need the math defines for MSVC.
Diffstat (limited to 'intern/iksolver')
-rw-r--r--intern/iksolver/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/iksolver/CMakeLists.txt b/intern/iksolver/CMakeLists.txt
index 5e12cdbcc2f..a7a346ccddd 100644
--- a/intern/iksolver/CMakeLists.txt
+++ b/intern/iksolver/CMakeLists.txt
@@ -27,6 +27,10 @@ set(INC_SYS
${EIGEN3_INCLUDE_DIRS}
)
+if(WIN32)
+ add_definitions(-D_USE_MATH_DEFINES)
+endif()
+
set(SRC
intern/IK_QJacobian.cpp
intern/IK_QJacobianSolver.cpp