git: 27d86b9f6d46 - main - cad/csxcad: Fix build with HDF5 1.12.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Jul 2022 12:51:55 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=27d86b9f6d46035d172ff388ac37beff1579b3df
commit 27d86b9f6d46035d172ff388ac37beff1579b3df
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-07-18 12:50:18 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-07-18 12:50:18 +0000
cad/csxcad: Fix build with HDF5 1.12.0+
---
cad/csxcad/files/patch-hdf5 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/cad/csxcad/files/patch-hdf5 b/cad/csxcad/files/patch-hdf5
new file mode 100644
index 000000000000..c4134ce21cd4
--- /dev/null
+++ b/cad/csxcad/files/patch-hdf5
@@ -0,0 +1,12 @@
+--- CMakeLists.txt.orig 2022-07-01 18:43:14 UTC
++++ CMakeLists.txt
+@@ -100,7 +100,8 @@ message(STATUS "TinyXML_LIBRARY: ${TinyXML_LIBRARY}")
+
+ INCLUDE_DIRECTORIES( ${TinyXML_INCLUDE_DIR} )
+
+-find_package(HDF5 1.8 COMPONENTS C HL REQUIRED)
++set(HDF5_INCLUDE_DIRS "${LOCALBASE}/include")
++set(HDF5_LIBRARY_DIRS "${LOCALBASE}/lib")
+ INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIRS})
+ link_directories(${HDF5_LIBRARY_DIRS})
+ # hdf5 compat