-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello,
I am able to build H5PP standalone which is able to find and build hdf5 fine. My goal is to include h5pp as a submodule. I created a CMake project that has the following:
cmake_minimum_required(VERSION 3.15)
project(HDFWrapper)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/deps/h5pp/cmake
${CMAKE_CURRENT_SOURCE_DIR}/deps/h5pp/cmake/modules
)
# Set H5PP Options
set(H5PP_ENABLE_EIGEN3 OFF)
set(H5PP_ENABLE_FMT OFF)
set(H5PP_ENABLE_SPDLOG OFF)
set(H5PP_ENABLE_TESTS OFF)
set(H5PP_ENABLE_EXAMPLES OFF)
set(BUILD_SHARED_LIBS OFF)
set(H5PP_IS_SUBPROJECT ON)
# Add the HDF5 submodule
add_subdirectory(deps/h5pp)
# Add your executable or library
add_executable(hdf_rw hdf_rw.cpp)
# Link your project to the HDF5 static library
target_link_libraries(hdf_rw PRIVATE h5pp::h5pp)But with this it is unable to download and find the hdf5 package. What am I missing? Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels