summarylogtreecommitdiffstats
path: root/openvdb7.patch
diff options
context:
space:
mode:
authorCYBERDEViL2020-12-20 16:56:42 +0100
committerbartus2020-12-20 17:01:32 +0100
commitb065223d5f58ae66650e538681dbfd66f58b4249 (patch)
tree96363fa447db4d39723c1dadf4265700cd15b733 /openvdb7.patch
parentd3e7a5221df9eb686846292a5ca25815763be689 (diff)
downloadaur-b065223d5f58ae66650e538681dbfd66f58b4249.tar.gz
Build fix for newer dependencies.
Signed-off-by: bartus <szczepaniak.bartek+github@gmail.com> fix #1
Diffstat (limited to 'openvdb7.patch')
-rw-r--r--openvdb7.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/openvdb7.patch b/openvdb7.patch
new file mode 100644
index 00000000000..630605a6c35
--- /dev/null
+++ b/openvdb7.patch
@@ -0,0 +1,29 @@
+diff --git a/intern/openvdb/CMakeLists.txt b/intern/openvdb/CMakeLists.txt
+index 9ac0817903b..e60d45b7f64 100644
+--- a/intern/openvdb/CMakeLists.txt
++++ b/intern/openvdb/CMakeLists.txt
+@@ -23,6 +23,8 @@
+ #
+ # ***** END GPL LICENSE BLOCK *****
+
++set (CMAKE_CXX_STANDARD 14)
++
+ set(INC
+ .
+ intern
+diff --git a/intern/openvdb/intern/openvdb_writer.cc b/intern/openvdb/intern/openvdb_writer.cc
+index 900c5371682..f209ec758b6 100644
+--- a/intern/openvdb/intern/openvdb_writer.cc
++++ b/intern/openvdb/intern/openvdb_writer.cc
+@@ -39,11 +39,7 @@ void OpenVDBWriter::insert(const openvdb::GridBase::Ptr &grid)
+
+ void OpenVDBWriter::insert(const openvdb::GridBase &grid)
+ {
+-#if (OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER <= 3) || defined(OPENVDB_3_ABI_COMPATIBLE)
+- m_grids->push_back(grid.copyGrid());
+-#else
+ m_grids->push_back(grid.copyGridWithNewTree());
+-#endif
+ }
+
+ void OpenVDBWriter::insertFloatMeta(const openvdb::Name &name, const float value)