[Bf-blender-cvs] [763f117c480] blender-v2.82-release: Fix: Build error on windows in bf_intern_mantaflow

Ray Molenkamp noreply at git.blender.org
Thu Feb 6 21:44:37 CET 2020


Commit: 763f117c480e508e6a9bf3c53b929630879bdfc1
Author: Ray Molenkamp
Date:   Thu Feb 6 13:44:30 2020 -0700
Branches: blender-v2.82-release
https://developer.blender.org/rB763f117c480e508e6a9bf3c53b929630879bdfc1

Fix: Build error on windows in bf_intern_mantaflow

bf_intern_mantaflow lacked the `-DOPENVDB_STATICLIB` define
causing it to dynamically import openvdb, linked against
our static libs a happy time was not had by the linker.

===================================================================

M	intern/mantaflow/CMakeLists.txt

===================================================================

diff --git a/intern/mantaflow/CMakeLists.txt b/intern/mantaflow/CMakeLists.txt
index a3d891907a9..2d49f96a451 100644
--- a/intern/mantaflow/CMakeLists.txt
+++ b/intern/mantaflow/CMakeLists.txt
@@ -27,6 +27,7 @@ add_definitions(-DWITH_FLUID=1)
 
 if(WITH_OPENVDB)
   add_definitions(-DOPENVDB=1)
+  add_definitions(-DOPENVDB_STATICLIB)
 endif()
 
 set(INC



More information about the Bf-blender-cvs mailing list