bugfix: install Find{libaec,ZLIBNG}.cmake (#6301)

Before this, error on install when using HDF5 via FetchContent
as CMAKE_SOURCE_DIR pointed to parent project

Co-authored-by: scivision <scivision@users.noreply.github.com>
This commit is contained in:
scivision
2026-03-18 12:07:49 -05:00
committed by GitHub
co-authored by scivision
parent c165f2838d
commit 7f79a4e3c7
+2 -2
View File
@@ -174,12 +174,12 @@ endif ()
# Add CMake Find modules to installation
#-----------------------------------------------------------------------------
install (
FILES ${CMAKE_SOURCE_DIR}/config/cmake/Findlibaec.cmake
FILES ${HDF_RESOURCES_DIR}/Findlibaec.cmake
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/Modules
COMPONENT configinstall
)
install (
FILES ${CMAKE_SOURCE_DIR}/config/cmake/FindZLIBNG.cmake
FILES ${HDF_RESOURCES_DIR}/FindZLIBNG.cmake
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/Modules
COMPONENT configinstall
)