Skip to content

Commit

Permalink
try dynamic binding for hdf5 for python/linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jun 3, 2024
1 parent bb2acd5 commit 6954e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
shell: msys2 {0}
run: |
platform=windows
PATH="/c/Program Files/LLVM/bin:$PATH"
PATH="/c/Program Files/LLVM/bin;$PATH"
pip install --verbose .
if: matrix.platform == 'windows-latest'

Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ if(WINDOWS OR WIN32 OR WIN64)
set(HDF5_USE_STATIC_LIBRARIES OFF)
add_definitions(-DZIP_STATIC)
endif ()
if (LINUX AND OPTION_TARGET_PYTHON_BINDING)
set(HDF5_USE_STATIC_LIBRARIES OFF)
endif()

#CMakeList.txt that comes with hdf5 switches library name if compiled with debug
find_package(HDF5 COMPONENTS HL CXX C)
set(HDF_VERSION ${HDF5_VERSION})
Expand Down

0 comments on commit 6954e6f

Please sign in to comment.