
Changelog: https://github.com/Blosc/hdf5-blosc/releases/tag/v1.0.1 Fixes gcc14 build. I needed to update the patch for it to apply cleanly though.
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 9ec0f23..35953d3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -24,15 +24,6 @@ message("BLOSC_INSTALL_DIR='${BLOSC_INSTALL_DIR}'")
|
|
message("BLOSC_CMAKE_ARGS='${BLOSC_CMAKE_ARGS}'")
|
|
message("GIT_EXECUTABLE='${GIT_EXECUTABLE}'")
|
|
|
|
-ExternalProject_Add(project_blosc
|
|
- PREFIX ${BLOSC_PREFIX}
|
|
- GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
|
|
- GIT_TAG main
|
|
- INSTALL_DIR ${BLOSC_INSTALL_DIR}
|
|
- CMAKE_ARGS ${BLOSC_CMAKE_ARGS}
|
|
-)
|
|
-
|
|
-
|
|
# sources
|
|
set(SOURCES src/blosc_filter.c)
|
|
set(PLUGIN_SOURCES src/blosc_filter.c src/blosc_plugin.c )
|
|
@@ -56,7 +47,6 @@ include_directories(${HDF5_INCLUDE_DIRS})
|
|
# add blosc libraries
|
|
add_library(blosc_shared SHARED IMPORTED)
|
|
set_property(TARGET blosc_shared PROPERTY IMPORTED_LOCATION ${BLOSC_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}/${CMAKE_SHARED_LIBRARY_PREFIX}blosc${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
-add_dependencies(blosc_shared project_blosc)
|
|
include_directories(${BLOSC_INSTALL_DIR}/include)
|
|
|
|
add_library(blosc_filter_shared SHARED ${SOURCES})
|
|
|