mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 00:23:14 +00:00
make modifications to support conda hdf5 1.14 in CMakeLists.txt
This commit is contained in:
+18
-7
@@ -582,19 +582,30 @@ if(HDF5_SUPPORT)
|
||||
|
||||
else()
|
||||
message(STATUS "Packaging hdf5 and zlib for conda distribution")
|
||||
|
||||
set(HDF5_LIBRARIES)
|
||||
if(WIN32)
|
||||
# Windows
|
||||
set(zlib_post zlib)
|
||||
set(lib_ext lib)
|
||||
find_package(HDF5 COMPONENTS CXX)
|
||||
if (HDF5_FOUND)
|
||||
set(HDF5_LIBRARIES ${HDF5_CXX_LIBRARIES})
|
||||
endif()
|
||||
list(APPEND HDF5_LIBRARIES
|
||||
"${HDF5_LIBRARY_DIR}/zlib.lib"
|
||||
)
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
# macOS
|
||||
set(zlib_post libz)
|
||||
set(lib_ext dylib)
|
||||
list(APPEND HDF5_LIBRARIES
|
||||
"${HDF5_LIBRARY_DIR}/libhdf5_cpp.dylib"
|
||||
"${HDF5_LIBRARY_DIR}/libhdf5.dylib"
|
||||
"${HDF5_LIBRARY_DIR}/libz.dylib"
|
||||
)
|
||||
else()
|
||||
# linux
|
||||
set(zlib_post libz)
|
||||
set(lib_ext so)
|
||||
list(APPEND HDF5_LIBRARIES
|
||||
"${HDF5_LIBRARY_DIR}/libhdf5_cpp.so"
|
||||
"${HDF5_LIBRARY_DIR}/libhdf5.so"
|
||||
"${HDF5_LIBRARY_DIR}/libz.so"
|
||||
)
|
||||
endif()
|
||||
|
||||
set(HDF5_LIBRARIES
|
||||
|
||||
Reference in New Issue
Block a user