diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-02-26 21:10:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-26 21:24:20 +0300 |
commit | 9085b7e847bb8904e17597d651f1a8f4c7e9ae43 (patch) | |
tree | 195f2f4bf88e2d0268051d0e4b56e35a2b2a55d3 /extern/mantaflow/CMakeLists.txt | |
parent | da38cb622e0f2e6389fee3ffb148ca77b5979014 (diff) |
Fix OpenVDB link error on Windows after recent changes
Diffstat (limited to 'extern/mantaflow/CMakeLists.txt')
-rw-r--r-- | extern/mantaflow/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extern/mantaflow/CMakeLists.txt b/extern/mantaflow/CMakeLists.txt index 95d46ae5a9b..bdee06349d2 100644 --- a/extern/mantaflow/CMakeLists.txt +++ b/extern/mantaflow/CMakeLists.txt @@ -49,6 +49,11 @@ if(WITH_TBB) add_definitions(-DTBB=1) endif() +if(WITH_OPENVDB) + add_definitions(-DOPENVDB=1) + add_definitions(-DOPENVDB_STATICLIB) +endif() + if(WIN32) add_definitions(-D_USE_MATH_DEFINES) endif() @@ -78,7 +83,6 @@ if(WITH_TBB) endif() if(WITH_OPENVDB) - add_definitions(-DOPENVDB=1 ${OPENVDB_DEFINITIONS}) list(APPEND INC_SYS ${OPENVDB_INCLUDE_DIRS} ) |