Distribute Findlibaec.cmake module for use by HDF5 library consumers (#6159)

This commit is contained in:
jhendersonHDF
2026-01-22 16:14:20 -06:00
committed by GitHub
parent 16364fe2fa
commit 9af6db11b6
2 changed files with 12 additions and 1 deletions
+9
View File
@@ -150,6 +150,15 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED)
)
endif ()
#-----------------------------------------------------------------------------
# Add CMake Find modules to installation
#-----------------------------------------------------------------------------
install (
FILES ${CMAKE_SOURCE_DIR}/config/cmake/Findlibaec.cmake
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}/Modules
COMPONENT configinstall
)
#-----------------------------------------------------------------------------
# Configure the libhdf5.settings file with library info
#-----------------------------------------------------------------------------
+3 -1
View File
@@ -18,6 +18,8 @@
include(CMakeFindDependencyMacro)
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/Modules")
string(TOUPPER @HDF5_PACKAGE@ HDF5_PACKAGE_NAME)
set (${HDF5_PACKAGE_NAME}_VALID_COMPONENTS
@@ -135,7 +137,7 @@ endif ()
if (${HDF5_PACKAGE_NAME}_PROVIDES_SZIP_SUPPORT)
if (NOT @SZIP_USE_EXTERNAL@)
find_dependency (LIBAEC NAMES @LIBAEC_PACKAGE_NAME@ CONFIG OPTIONAL_COMPONENTS @LIBAEC_SEARCH_TYPE@)
find_dependency (@LIBAEC_PACKAGE_NAME@ OPTIONAL_COMPONENTS @LIBAEC_SEARCH_TYPE@)
endif ()
endif ()