2017-04-18 03:32:16 +08:00
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the COPYING file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
|
|
|
#
|
2014-04-26 05:27:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-09-25 22:37:09 +08:00
|
|
|
# HDF5 Config file for compiling against hdf5 build/install directory
|
2014-04-26 05:27:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-09-25 22:37:09 +08:00
|
|
|
@PACKAGE_INIT@
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-03-24 03:45:58 +08:00
|
|
|
string(TOUPPER @HDF5_PACKAGE@ HDF5_PACKAGE_NAME)
|
|
|
|
|
2015-03-26 06:08:46 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_VALID_COMPONENTS
|
2015-08-06 05:01:07 +08:00
|
|
|
static
|
|
|
|
shared
|
2015-03-26 06:08:46 +08:00
|
|
|
C
|
|
|
|
CXX
|
|
|
|
Fortran
|
|
|
|
HL
|
|
|
|
CXX_HL
|
|
|
|
Fortran_HL
|
2016-02-29 10:43:00 +08:00
|
|
|
Java
|
2015-03-26 06:08:46 +08:00
|
|
|
Tools
|
|
|
|
)
|
|
|
|
|
2014-04-26 05:27:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# User Options
|
|
|
|
#-----------------------------------------------------------------------------
|
2023-10-20 06:24:50 +08:00
|
|
|
# Languages:
|
2024-01-10 01:42:45 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN @HDF5_BUILD_FORTRAN@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_CPP_LIB @HDF5_BUILD_CPP_LIB@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_JAVA @HDF5_BUILD_JAVA@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_INSTALL_MOD_FORTRAN "@HDF5_INSTALL_MOD_FORTRAN@")
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Features:
|
2024-01-10 01:42:45 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_HL_LIB @HDF5_BUILD_HL_LIB@)
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_SHARED_LIBS @H5_ENABLE_SHARED_LIB@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_STATIC_LIBS @H5_ENABLE_STATIC_LIB@)
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_THREADSAFE @HDF5_ENABLE_THREADSAFE@)
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL @HDF5_ENABLE_PARALLEL@)
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_DEFAULT_API_VERSION "@DEFAULT_API_VERSION@")
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_DEPRECATED_SYMBOLS @HDF5_ENABLE_DEPRECATED_SYMBOLS@)
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_DIMENSION_SCALES_WITH_NEW_REF @DIMENSION_SCALES_WITH_NEW_REF@)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_TOOLS @HDF5_BUILD_TOOLS@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_BUILD_HL_GIF_TOOLS @HDF5_BUILD_HL_GIF_TOOLS@)
|
|
|
|
#-----------------------------------------------------------------------------
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT @HDF5_ENABLE_Z_LIB_SUPPORT@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT @HDF5_ENABLE_SZIP_SUPPORT@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_ENCODING @HDF5_ENABLE_SZIP_ENCODING@)
|
2024-01-10 01:42:45 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_MAP_API @HDF5_ENABLE_MAP_API@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_DIRECT_VFD @HDF5_ENABLE_DIRECT_VFD@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_MIRROR_VFD @HDF5_ENABLE_MIRROR_VFD@)
|
2023-10-20 06:24:50 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_ROS3_VFD @HDF5_ENABLE_ROS3_VFD@)
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_HDFS_VFD @HDF5_ENABLE_HDFS@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_SUBFILING_VFD @HDF5_ENABLE_SUBFILING_VFD@)
|
2020-09-26 05:43:57 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_ENABLE_PLUGIN_SUPPORT @HDF5_ENABLE_PLUGIN_SUPPORT@)
|
2023-10-20 06:24:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS @HDF5_PACKAGE_EXTLIBS@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES @HDF5_LIBRARIES_TO_EXPORT@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_ARCHITECTURE "@CMAKE_GENERATOR_ARCHITECTURE@")
|
|
|
|
set (${HDF5_PACKAGE_NAME}_TOOLSET "@CMAKE_GENERATOR_TOOLSET@")
|
2014-04-26 05:27:37 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Dependencies
|
|
|
|
#-----------------------------------------------------------------------------
|
2015-03-19 05:17:59 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL)
|
2017-11-02 02:41:44 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_C_INCLUDE_PATH "@MPI_C_INCLUDE_DIRS@")
|
2015-03-19 05:17:59 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_C_LIBRARIES "@MPI_C_LIBRARIES@")
|
2017-11-02 02:41:44 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_Fortran_INCLUDE_PATH "@MPI_Fortran_INCLUDE_DIRS@")
|
|
|
|
set (${HDF5_PACKAGE_NAME}_MPI_Fortran_LIBRARIES "@MPI_Fortran_LIBRARIES@")
|
|
|
|
endif ()
|
2024-01-10 01:42:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_PARALLEL_FILTERED_WRITES @PARALLEL_FILTERED_WRITES@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_LARGE_PARALLEL_IO @LARGE_PARALLEL_IO@)
|
2023-01-19 06:26:35 +08:00
|
|
|
|
|
|
|
find_package(MPI QUIET REQUIRED)
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2023-07-25 03:43:43 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_ENABLE_THREADSAFE OR ${HDF5_PACKAGE_NAME}_ENABLE_SUBFILING_VFD)
|
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
|
|
|
find_package(Threads QUIET REQUIRED)
|
|
|
|
endif ()
|
|
|
|
|
2016-02-29 10:43:00 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_JAVA)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_JAVA_INCLUDE_DIRS
|
|
|
|
@PACKAGE_CURRENT_BUILD_DIR@/lib/jarhdf5-@HDF5_VERSION_STRING@.jar
|
2023-04-04 05:36:23 +08:00
|
|
|
@PACKAGE_CURRENT_BUILD_DIR@/lib/slf4j-api-2.0.6.jar
|
|
|
|
@PACKAGE_CURRENT_BUILD_DIR@/lib/slf4j-nop-2.0.6.jar
|
2016-02-29 10:43:00 +08:00
|
|
|
)
|
2017-03-02 04:47:53 +08:00
|
|
|
endif ()
|
2016-02-29 10:43:00 +08:00
|
|
|
|
2014-04-26 05:27:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Directories
|
|
|
|
#-----------------------------------------------------------------------------
|
2017-11-02 02:41:44 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@" "${${HDF5_PACKAGE_NAME}_MPI_C_INCLUDE_DIRS}")
|
2014-09-25 22:37:09 +08:00
|
|
|
|
2015-03-19 05:17:59 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_SHARE_DIR "@PACKAGE_SHARE_INSTALL_DIR@")
|
|
|
|
set_and_check (${HDF5_PACKAGE_NAME}_BUILD_DIR "@PACKAGE_CURRENT_BUILD_DIR@")
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-03-19 05:17:59 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_CPP_LIB)
|
2015-03-27 22:38:13 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_CPP "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-03-19 05:17:59 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_HL_LIB)
|
2015-03-27 22:38:13 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_HL "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-03-19 05:17:59 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_HL_LIB AND ${HDF5_PACKAGE_NAME}_BUILD_CPP_LIB)
|
2015-03-27 22:38:13 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_HL_CPP "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-03-19 05:17:59 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_TOOLS)
|
2015-03-27 22:38:13 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_TOOLS "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
|
|
|
set_and_check (${HDF5_PACKAGE_NAME}_TOOLS_DIR "@PACKAGE_CURRENT_BUILD_DIR@/bin")
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Version Strings
|
|
|
|
#-----------------------------------------------------------------------------
|
2019-08-07 05:23:15 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_VERSION_STRING @HDF5_VERSION_STRING@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_VERSION_MAJOR @HDF5_VERSION_MAJOR@)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_VERSION_MINOR @HDF5_VERSION_MINOR@)
|
2014-04-26 05:27:37 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Don't include targets if this file is being picked up by another
|
|
|
|
# project which has already built hdf5 as a subproject
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (NOT TARGET "@HDF5_PACKAGE@")
|
2019-04-04 04:02:42 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
|
2021-09-28 21:00:37 +08:00
|
|
|
include (@PACKAGE_SHARE_INSTALL_DIR@/@ZLIB_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
2018-01-26 06:54:28 +08:00
|
|
|
endif ()
|
2019-04-04 04:02:42 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
|
2023-04-24 04:11:17 +08:00
|
|
|
include (@PACKAGE_SHARE_INSTALL_DIR@/@LIBAEC_PACKAGE_NAME@@HDF_PACKAGE_EXT@-targets.cmake)
|
2018-01-26 06:54:28 +08:00
|
|
|
endif ()
|
2021-09-28 21:00:37 +08:00
|
|
|
include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake)
|
2015-03-19 05:17:59 +08:00
|
|
|
endif ()
|
2014-04-26 05:27:37 +08:00
|
|
|
|
2015-08-06 05:01:07 +08:00
|
|
|
# Handle default component(static) :
|
2015-03-26 06:08:46 +08:00
|
|
|
if (NOT ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
2019-06-18 20:46:25 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_STATIC_LIBS)
|
2015-08-06 05:01:07 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_FIND_COMPONENTS C HL static)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_FIND_REQUIRED_static_C true)
|
2019-06-18 20:46:25 +08:00
|
|
|
else ()
|
|
|
|
set (${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_FIND_COMPONENTS C HL shared)
|
|
|
|
set (${HDF5_PACKAGE_NAME}_FIND_REQUIRED_shared_C true)
|
|
|
|
endif ()
|
2015-03-26 06:08:46 +08:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
# Handle requested components:
|
|
|
|
list (REMOVE_DUPLICATES ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
2015-08-06 05:01:07 +08:00
|
|
|
foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
2019-02-16 05:48:24 +08:00
|
|
|
if (comp STREQUAL "shared")
|
2015-08-06 05:01:07 +08:00
|
|
|
list (REMOVE_ITEM ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS ${comp})
|
|
|
|
set (${HDF5_PACKAGE_NAME}_LIB_TYPE ${${HDF5_PACKAGE_NAME}_LIB_TYPE} ${comp})
|
2015-09-09 22:58:44 +08:00
|
|
|
|
2023-09-02 10:46:22 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN AND ${HDF5_PACKAGE_NAME}_INSTALL_MOD_FORTRAN STREQUAL "SHARED")
|
2015-09-09 22:58:44 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_FORTRAN "@PACKAGE_INCLUDE_INSTALL_DIR@/shared")
|
|
|
|
endif ()
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "static")
|
2015-08-06 05:01:07 +08:00
|
|
|
list (REMOVE_ITEM ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS ${comp})
|
|
|
|
set (${HDF5_PACKAGE_NAME}_LIB_TYPE ${${HDF5_PACKAGE_NAME}_LIB_TYPE} ${comp})
|
2015-09-09 22:58:44 +08:00
|
|
|
|
2023-09-02 10:46:22 +08:00
|
|
|
if (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN AND ${HDF5_PACKAGE_NAME}_INSTALL_MOD_FORTRAN STREQUAL "STATIC")
|
2015-09-09 22:58:44 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_INCLUDE_DIR_FORTRAN "@PACKAGE_INCLUDE_INSTALL_DIR@/static")
|
|
|
|
endif ()
|
2015-08-06 05:01:07 +08:00
|
|
|
endif ()
|
|
|
|
endforeach ()
|
|
|
|
foreach (libtype IN LISTS ${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
2015-03-26 06:08:46 +08:00
|
|
|
foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
|
|
|
set (hdf5_comp2)
|
2019-02-16 05:48:24 +08:00
|
|
|
if (comp STREQUAL "C")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp "hdf5")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "CXX")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp "hdf5_cpp")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "HL")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp "hdf5_hl")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "CXX_HL")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp "hdf5_hl_cpp")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "Java")
|
2016-02-29 10:43:00 +08:00
|
|
|
set (hdf5_comp "hdf5_java")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "Tools")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp "hdf5_tools")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "Fortran")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp2 "hdf5_f90cstub")
|
|
|
|
set (hdf5_comp "hdf5_fortran")
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "Fortran_HL")
|
2015-03-26 06:08:46 +08:00
|
|
|
set (hdf5_comp2 "hdf5_hl_f90cstub")
|
|
|
|
set (hdf5_comp "hdf5_hl_fortran")
|
|
|
|
endif ()
|
2019-02-16 05:48:24 +08:00
|
|
|
if (comp STREQUAL "Java")
|
2017-09-20 01:39:45 +08:00
|
|
|
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp}" HAVE_COMP)
|
|
|
|
else ()
|
|
|
|
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp}-${libtype}" HAVE_COMP)
|
|
|
|
endif ()
|
2015-09-09 22:58:44 +08:00
|
|
|
if (${HAVE_COMP} LESS 0)
|
2019-02-16 05:48:24 +08:00
|
|
|
if (comp STREQUAL "Java")
|
2017-09-20 01:39:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 0)
|
|
|
|
else ()
|
|
|
|
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 0)
|
|
|
|
endif ()
|
2015-03-26 06:08:46 +08:00
|
|
|
else ()
|
|
|
|
if (hdf5_comp2)
|
2015-09-09 22:58:44 +08:00
|
|
|
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp2}-${libtype}" HAVE_COMP2)
|
2015-03-26 06:08:46 +08:00
|
|
|
if (${HAVE_COMP2} LESS 0)
|
2015-08-06 05:01:07 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 0)
|
2015-03-26 06:08:46 +08:00
|
|
|
else ()
|
2015-08-06 05:01:07 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 1)
|
|
|
|
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_${libtype}_LIBRARY COMP_LIBRARY)
|
2019-08-30 05:22:21 +08:00
|
|
|
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @HDF_PACKAGE_NAMESPACE@${hdf5_comp2}-${libtype} @HDF_PACKAGE_NAMESPACE@${hdf5_comp}-${libtype})
|
2015-03-26 06:08:46 +08:00
|
|
|
endif ()
|
2019-02-16 05:48:24 +08:00
|
|
|
elseif (comp STREQUAL "Java")
|
2017-09-20 01:39:45 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 1)
|
|
|
|
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
|
2019-08-30 05:22:21 +08:00
|
|
|
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @HDF_PACKAGE_NAMESPACE@${hdf5_comp})
|
2015-03-26 06:08:46 +08:00
|
|
|
else ()
|
2015-08-06 05:01:07 +08:00
|
|
|
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 1)
|
|
|
|
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_${libtype}_LIBRARY COMP_LIBRARY)
|
2019-08-30 05:22:21 +08:00
|
|
|
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @HDF_PACKAGE_NAMESPACE@${hdf5_comp}-${libtype})
|
2015-03-26 06:08:46 +08:00
|
|
|
endif ()
|
2015-03-27 22:38:13 +08:00
|
|
|
endif ()
|
2015-03-26 06:08:46 +08:00
|
|
|
endforeach ()
|
2015-08-06 05:01:07 +08:00
|
|
|
endforeach ()
|
2015-03-26 06:08:46 +08:00
|
|
|
|
2015-08-06 05:01:07 +08:00
|
|
|
foreach (libtype IN LISTS ${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
|
|
|
check_required_components(${HDF5_PACKAGE_NAME}_${libtype})
|
|
|
|
endforeach ()
|