Skip to content

Commit

Permalink
HDF5: ExtProj needs to use GLOBAL to use from parent projects
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Apr 26, 2024
1 parent a8ca36b commit 021d909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/hdf5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ set(HDF5_INCLUDE_DIRS ${CMAKE_INSTALL_FULL_INCLUDEDIR})
file(MAKE_DIRECTORY ${HDF5_INCLUDE_DIRS})
# avoid race condition

add_library(HDF5::HDF5 INTERFACE IMPORTED)
add_library(HDF5::HDF5 INTERFACE IMPORTED GLOBAL)
add_dependencies(HDF5::HDF5 hdf5)
target_include_directories(HDF5::HDF5 INTERFACE "${HDF5_INCLUDE_DIRS}")
target_link_libraries(HDF5::HDF5 INTERFACE "${HDF5_LIBRARIES}")
Expand Down

0 comments on commit 021d909

Please sign in to comment.