Skip to content

Commit b9c9cbe

Browse files
[cmake] hdf5 link must be public
1 parent 6caefd4 commit b9c9cbe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

h5cpp-config.cmake.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ if(H5CPP_BOOST_ENABLED)
3232
message(FATAL_ERROR "Could not find Boost filesystem library - cannot load h5cpp targets")
3333
endif()
3434

35-
link_directories(${Boost_LIBRARY_DIRS})
3635
endif()
3736

3837
find_dependency(Threads)

src/h5cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ endif()
7777
target_link_libraries(h5cpp
7878
PUBLIC
7979
${H5CPP_LINKS}
80+
hdf5::hdf5
8081
PRIVATE ${COVERAGE_LIBRARIES}
8182
hdf5::hdf5_hl
82-
hdf5::hdf5
8383
Threads::Threads
8484
${H5CPP_FILTER_TARGETS}
8585
${CMAKE_DL_LIBS}

0 commit comments

Comments
 (0)