Let's use same type of hdf5 library for `nnpackage_run`.
Currently arm uses hdf5 static linking, x86_64 uses shared one.
I've found that `aec` linking bug exists in shared library also.
Thus, if condition is removed from HDF5Config.cmake.
Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
set(HDF5_FOUND TRUE)
endif()
-if (HDF5_USE_STATIC_LIBRARIES)
- # Append missing libaec which is required by libsz, which is required by libhdf5
- list(APPEND HDF5_LIBRARIES "aec")
-endif(HDF5_USE_STATIC_LIBRARIES)
+# Append missing libaec which is required by libsz, which is required by libhdf5
+list(APPEND HDF5_LIBRARIES "aec")
return()
endif(NOT BUILD_NEURUN)
-if (CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
- # use static linking to avoid installing hdf5 library on existing arm CI slaves.
- set(HDF5_USE_STATIC_LIBRARIES ON)
-endif (CMAKE_CROSSCOMPILING AND CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
nnfw_find_package(HDF5 QUIET)
if(NOT HDF5_FOUND)
message(WARNING "HDF5 NOT found. Install libhdf5-dev to build nnpackage_run.")