mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Distribute Findlibaec.cmake module for use by HDF5 library consumers (#6159)
This commit is contained in:
@@ -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
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user