diff --git a/python/h5/CMakeLists.txt b/python/h5/CMakeLists.txt index 01f0028..3af7c58 100644 --- a/python/h5/CMakeLists.txt +++ b/python/h5/CMakeLists.txt @@ -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 $<$:-Wno-attributes>) # Build and install any python modules