Skip to content

Commit

Permalink
[cmake] Fix hdf5 linkeage in python layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jul 22, 2024
1 parent d4509a7 commit 64c0632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/h5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${CPP2PY_PYTHON_LIB_DE
# Build the h5py_io library
add_library(h5py_io STATIC h5py_io.cpp)
set_property(TARGET h5py_io PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(h5py_io PUBLIC ${PROJECT_NAME}_c hdf5 cpp2py::cpp2py cpp2py::python_and_numpy)
target_link_libraries(h5py_io PUBLIC ${PROJECT_NAME}_c hdf5::hdf5 cpp2py::cpp2py cpp2py::python_and_numpy)
target_include_directories(h5py_io PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

## Build the pybind11 module
#pybind11_add_module(_h5py _h5py.cpp h5py_io.cpp)
#target_link_libraries(_h5py PRIVATE pybind11 h5_c hdf5 python_and_numpy)
#target_link_libraries(_h5py PRIVATE pybind11 h5_c hdf5::hdf5 python_and_numpy)
#target_compile_options(_h5py PUBLIC $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)

# Build and install any python modules
Expand Down

0 comments on commit 64c0632

Please sign in to comment.