diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-02-15 21:48:24 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-02-15 21:48:24 (GMT) |
commit | 122b63a5a27227f2349634f4e8f8e43d739255f5 (patch) | |
tree | 195fb47964dd6c95844ad1ec4da210bdaa0b9c25 /CMakeInstallation.cmake | |
parent | 6ea0dafa41415c0888889214c82f75a02ec4a545 (diff) | |
download | hdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.zip hdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.tar.gz hdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.tar.bz2 |
HDFFV-10703 Update CMake commands to latest standard
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r-- | CMakeInstallation.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake index 7a0746a..6d05a58 100644 --- a/CMakeInstallation.cmake +++ b/CMakeInstallation.cmake @@ -104,9 +104,10 @@ endif () # Configure the hdf5-config-version .cmake file for the install directory #----------------------------------------------------------------------------- if (NOT HDF5_EXTERNALLY_CONFIGURED) - configure_file ( - ${HDF_RESOURCES_DIR}/hdf5-config-version.cmake.in - ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake @ONLY + write_basic_package_version_file ( + ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake + VERSION ${HDF5_PACKAGE_VERSION} + COMPATIBILITY SameMinorVersion ) install ( FILES ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake |