mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
88ebaa5e47
Corrected use of "SKIP" message in cmake. Corrections to cmake configuration files (for cmake external projects). Community suggested changes. Tested: local linux
28 lines
1.0 KiB
CMake
28 lines
1.0 KiB
CMake
#-----------------------------------------------------------------------------
|
|
# HDF5 Version file for install directory
|
|
#-----------------------------------------------------------------------------
|
|
|
|
SET (PACKAGE_VERSION @HDF5_VERSION_STRING@)
|
|
|
|
IF ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @H5_VERS_MAJOR@)
|
|
|
|
# exact match for version @H5_VERS_MAJOR@.@H5_VERS_MINOR@
|
|
IF ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @H5_VERS_MINOR@)
|
|
|
|
# compatible with any version @H5_VERS_MAJOR@.@H5_VERS_MINOR@.x
|
|
SET (PACKAGE_VERSION_COMPATIBLE 1)
|
|
|
|
IF ("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @H5_VERS_RELEASE@)
|
|
SET (PACKAGE_VERSION_EXACT 1)
|
|
|
|
IF ("${PACKAGE_FIND_VERSION_TWEAK}" EQUAL @H5_VERS_SUBRELEASE@)
|
|
# not using this yet
|
|
ENDIF ("${PACKAGE_FIND_VERSION_TWEAK}" EQUAL @H5_VERS_SUBRELEASE@)
|
|
|
|
ENDIF ("${PACKAGE_FIND_VERSION_PATCH}" EQUAL @H5_VERS_RELEASE@)
|
|
|
|
ENDIF ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @H5_VERS_MINOR@)
|
|
ENDIF ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL @H5_VERS_MAJOR@)
|
|
|
|
|