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/libmv/CMakeLists.txt
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/libmv/CMakeLists.txt')
-rw-r--r--intern/libmv/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/libmv/CMakeLists.txt b/intern/libmv/CMakeLists.txt
index 019364d84df..e16e27368d0 100644
--- a/intern/libmv/CMakeLists.txt
+++ b/intern/libmv/CMakeLists.txt
@@ -38,6 +38,9 @@ set(LIB
)
if(WITH_LIBMV)
+ if(WIN32)
+ add_definitions(-D_USE_MATH_DEFINES)
+ endif()
add_definitions(${GFLAGS_DEFINES})
add_definitions(${GLOG_DEFINES})
add_definitions(${CERES_DEFINES})