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 4dbedd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ jobs:
- name: Build and install windows-latest
shell: msys2 {0}
run: |
platform=windows
PATH="/c/Program Files/LLVM/bin:$PATH"
pip install --verbose .
pip install --verbose -Ccmake.define.CMAKE_C_COMPILER="clang.exe" -Ccmake.define.CMAKE_CXX_COMPILER="clang++.exe" .
if: matrix.platform == 'windows-latest'

- name: Build and install ubuntu-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 4dbedd5

Please sign in to comment.