Files
nixpkgs/pkgs/by-name/hd/hdf5-blosc/no-external-blosc.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.0 KiB
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
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})