Skip to content

Commit

Permalink
build libsz ahead of time to avoid duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Nov 30, 2023
1 parent 4e3add9 commit a46d992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ all: $(HDF5_TARBALLS)
HDF5-%-Emscripten.tar.gz:
emcmake cmake -DCMAKE_INSTALL_PREFIX="$(INSTALL_PREFIX)/$(*)" -DHDF5_VERSION=$(*) -S . -B $(BUILD_DIR)/$(*);
cmake --build $(BUILD_DIR)/$(*) --target zlibstatic;
cmake --build $(BUILD_DIR)/$(*) --target sz_static;
cmake --build $(BUILD_DIR)/$(*) -j8;
cmake --install $(BUILD_DIR)/$(*);
sed -i -- 's/;[^;]*libz\.a/;$${_IMPORT_PREFIX}\/lib\/libz.a/g' $(INSTALL_PREFIX)/$(*)/cmake/hdf5-targets.cmake;
Expand Down

0 comments on commit a46d992

Please sign in to comment.