Skip to content

Commit

Permalink
Merge pull request #338 from scottaiton/hdf5-global-fix
Browse files Browse the repository at this point in the history
HDF5: ExtProj needs to use GLOBAL to use from parent projects
  • Loading branch information
scottaiton authored Jun 27, 2024
2 parents b423c13 + 021d909 commit 49107fb
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 49107fb

Please sign in to comment.