Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-01-23 19:19:09 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-01-23 19:20:02 +0300
commitcb39f6b212eab1be2b916fb8f9125a89818b252c (patch)
tree7be7f95fdf2eb57ca15dab26bfc4e26c780c5c6a /deps
parent81b7f437da596e88712fb8af7fa2010241ae392c (diff)
Use CheckAtomic differently
Diffstat (limited to 'deps')
-rw-r--r--deps/openvdb-mods.patch46
1 files changed, 23 insertions, 23 deletions
diff --git a/deps/openvdb-mods.patch b/deps/openvdb-mods.patch
index c365a4305..d80d0ffde 100644
--- a/deps/openvdb-mods.patch
+++ b/deps/openvdb-mods.patch
@@ -1,6 +1,6 @@
-From c660786dbac9e4c284049af4da56c34a998a4b68 Mon Sep 17 00:00:00 2001
+From d359098d9989ac7dbd149611d6ac941529fb4157 Mon Sep 17 00:00:00 2001
From: tamasmeszaros <meszaros.q@gmail.com>
-Date: Thu, 23 Jan 2020 16:27:21 +0100
+Date: Thu, 23 Jan 2020 17:17:36 +0100
Subject: [PATCH] openvdb-mods
---
@@ -12,13 +12,13 @@ Subject: [PATCH] openvdb-mods
cmake/FindOpenEXR.cmake | 329 ------------------
cmake/FindOpenVDB.cmake | 19 +-
cmake/FindTBB.cmake | 599 ++++++++++++++++----------------
- openvdb/CMakeLists.txt | 13 +-
+ openvdb/CMakeLists.txt | 16 +-
openvdb/Grid.cc | 3 +
openvdb/PlatformConfig.h | 9 +-
- openvdb/cmd/CMakeLists.txt | 11 +-
+ openvdb/cmd/CMakeLists.txt | 4 +-
openvdb/unittest/CMakeLists.txt | 3 +-
openvdb/unittest/TestFile.cc | 2 +-
- 14 files changed, 446 insertions(+), 1210 deletions(-)
+ 14 files changed, 442 insertions(+), 1210 deletions(-)
create mode 100644 cmake/CheckAtomic.cmake
delete mode 100644 cmake/FindBlosc.cmake
delete mode 100644 cmake/FindIlmBase.cmake
@@ -1763,7 +1763,7 @@ index bdf9c81..06093a4 100644
+
endif()
diff --git a/openvdb/CMakeLists.txt b/openvdb/CMakeLists.txt
-index 89301bd..df27aae 100644
+index 89301bd..6a3c90c 100644
--- a/openvdb/CMakeLists.txt
+++ b/openvdb/CMakeLists.txt
@@ -78,7 +78,7 @@ else()
@@ -1775,7 +1775,21 @@ index 89301bd..df27aae 100644
message(DEPRECATION "Support for TBB versions < ${FUTURE_MINIMUM_TBB_VERSION} "
"is deprecated and will be removed.")
endif()
-@@ -185,11 +185,6 @@ if(WIN32)
+@@ -129,10 +129,13 @@ endif()
+ # include paths from shared installs (including houdini) may pull in the wrong
+ # headers
+
++include (CheckAtomic)
++
+ set(OPENVDB_CORE_DEPENDENT_LIBS
+ Boost::iostreams
+ Boost::system
+ IlmBase::Half
++ ${CMAKE_REQUIRED_LIBRARIES}
+ )
+
+ if(USE_EXR)
+@@ -185,11 +188,6 @@ if(WIN32)
endif()
endif()
@@ -1787,7 +1801,7 @@ index 89301bd..df27aae 100644
##### Core library configuration
set(OPENVDB_LIBRARY_SOURCE_FILES
-@@ -374,10 +369,16 @@ set(OPENVDB_LIBRARY_UTIL_INCLUDE_FILES
+@@ -374,10 +372,16 @@ set(OPENVDB_LIBRARY_UTIL_INCLUDE_FILES
if(OPENVDB_CORE_SHARED)
add_library(openvdb_shared SHARED ${OPENVDB_LIBRARY_SOURCE_FILES})
@@ -1839,7 +1853,7 @@ index 20ad9a3..c2dd1ef 100644
#endif // _WIN32
diff --git a/openvdb/cmd/CMakeLists.txt b/openvdb/cmd/CMakeLists.txt
-index 57fbec0..0379756 100644
+index 57fbec0..55b3850 100644
--- a/openvdb/cmd/CMakeLists.txt
+++ b/openvdb/cmd/CMakeLists.txt
@@ -74,8 +74,9 @@ if(WIN32)
@@ -1861,20 +1875,6 @@ index 57fbec0..0379756 100644
)
if(OPENVDB_BUILD_CORE)
list(APPEND RPATHS ${CMAKE_INSTALL_PREFIX}/lib)
-@@ -116,6 +116,13 @@ if(OPENVDB_BUILD_VDB_PRINT)
- )
- endif()
-
-+ include(CheckAtomic)
-+
-+ check_working_cxx_atomics(HAS_ATOMIC)
-+ if (NOT HAS_ATOMIC)
-+ target_link_libraries(vdb_print atomic)
-+ endif()
-+
- install(TARGETS vdb_print DESTINATION bin)
- endif()
-
diff --git a/openvdb/unittest/CMakeLists.txt b/openvdb/unittest/CMakeLists.txt
index c9e0c34..7e261c0 100644
--- a/openvdb/unittest/CMakeLists.txt