Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PETRA III Debian Packages
hdf5
Commits
98f70a20
Commit
98f70a20
authored
Sep 19, 2019
by
Jan Kotanski
Browse files
New upstream version 1.10.5+repack
parent
324a573d
Changes
1000
Expand all
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
.autom4te.cfg
0 → 100644
View file @
98f70a20
# Copyright by The HDF Group.
# Copyright by the Board of Trustees of the University of Illinois.
# 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
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
## ------------------ ##
## User Preferences. ##
## ------------------ ##
begin-language: "Autoconf"
args: --no-cache
end-language: "Autoconf"
.h5chkright.ini
0 → 100644
View file @
98f70a20
# Copyright by The HDF Group.
# Copyright by the Board of Trustees of the University of Illinois.
# 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
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
# Initialization files for the Copyright Checker, chkcopyright.
# Each line is a keyword for action and the rest are values.
# Keywords:
# '#' Comments
# skip Files to be skipped
# prune Directories to be skipped. Notice this prunes all directories
# with the same name. E.g.,
# "prune test" skips test, fortran/test, c++/test, ...
# Skip COPYING since it is the detail Copyright notice.
skip
COPYING
# Sort of strange to have a copyright notice in README
skip
README
# Non-UI copyrighted files in top-level
skip
aclocal.m4
# Non-UI copyrighted files in bin.
skip
config.guess
skip
config.sub
skip
depcomp
skip
install-sh
skip
ltmain.sh
skip
missing
skip
mkinstalldirs
# Generated files in top-level
skip
configure
# Generated files in src.
skip
H5config.h.in
# Generated files in fortran/src.
skip
H5match_types.c
skip
H5test_kind.f90
# Ignore this expected output file in windows/examples.
skip
testExamples_exp_output.txt
# Skip all testfiles/* since if we insert a copyright notice in the expected
# data files, we would have to spend extra effort to filter them out.
prune
testfiles
ACKNOWLEDGMENTS
View file @
98f70a20
Acknowledgments
----------------
Acknowledgments
- November 2010
----------------
---------------
We would like to thank the following people who provided code contributions
to the HDF5 1.10.0 and earlier releases:
Steffen Kieß, for contributing code used to specify locations of the external
files included in the 1.10.0 release.
Jason Newton, for contributing code used to improve the C/C++ Packet Table
included in the 1.10.0 release.
We would like to thank the following people who have contributed directly
or indirectly to HDF5:
Werner Benger, for contributing code used to add support for the Windows
Threading library included in the 1.8.6 release.
...
...
CMakeFilters.cmake
View file @
98f70a20
#
# 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
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
include
(
ExternalProject
)
#option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO
SVN
TGZ)" "NO")
set
(
HDF5_ALLOW_EXTERNAL_SUPPORT
"NO"
CACHE STRING
"Allow External Library Building (NO
SVN
TGZ)"
)
set_property
(
CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO
SVN
TGZ
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
SVN
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
#option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO
GIT
TGZ)" "NO")
set
(
HDF5_ALLOW_EXTERNAL_SUPPORT
"NO"
CACHE STRING
"Allow External Library Building (NO
GIT
TGZ)"
)
set_property
(
CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO
GIT
TGZ
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
GIT
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
option
(
ZLIB_USE_EXTERNAL
"Use External Library Building for ZLIB"
1
)
option
(
SZIP_USE_EXTERNAL
"Use External Library Building for SZIP"
1
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
)
set
(
ZLIB_URL
${
ZLIB_SVN_URL
}
CACHE STRING
"Path to zlib Subversion repository"
)
set
(
SZIP_URL
${
SZIP_SVN_URL
}
CACHE STRING
"Path to szip Subversion repository"
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"GIT"
)
set
(
ZLIB_URL
${
ZLIB_GIT_URL
}
CACHE STRING
"Path to zlib git repository"
)
set
(
ZLIB_BRANCH
${
ZLIB_GIT_BRANCH
}
)
set
(
SZIP_URL
${
SZIP_GIT_URL
}
CACHE STRING
"Path to szip git repository"
)
set
(
SZIP_BRANCH
${
SZIP_GIT_BRANCH
}
)
elseif
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
if
(
NOT TGZPATH
)
set
(
TGZPATH
${
HDF5_SOURCE_DIR
}
)
endif
(
NOT TGZPATH
)
endif
()
set
(
ZLIB_URL
${
TGZPATH
}
/
${
ZLIB_TGZ_NAME
}
)
if
(
NOT EXISTS
"
${
ZLIB_URL
}
"
)
set
(
HDF5_ENABLE_Z_LIB_SUPPORT OFF CACHE BOOL
""
FORCE
)
message
(
STATUS
"Filter ZLIB file
${
ZLIB_URL
}
not found"
)
endif
()
set
(
SZIP_URL
${
TGZPATH
}
/
${
SZIP_TGZ_NAME
}
)
else
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
)
if
(
NOT EXISTS
"
${
SZIP_URL
}
"
)
set
(
HDF5_ENABLE_SZIP_SUPPORT OFF CACHE BOOL
""
FORCE
)
message
(
STATUS
"Filter SZIP file
${
SZIP_URL
}
not found"
)
endif
()
else
()
set
(
ZLIB_USE_EXTERNAL 0
)
set
(
SZIP_USE_EXTERNAL 0
)
endif
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
)
endif
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
endif
()
endif
()
#-----------------------------------------------------------------------------
# Option for ZLib support
...
...
@@ -32,11 +53,11 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT)
if
(
NOT ZLIB_FOUND
)
find_package
(
ZLIB
)
# Legacy find
if
(
ZLIB_FOUND
)
set
(
LINK_LIBS
${
LINK_LIBS
}
${
ZLIB_LIBRARIES
}
)
set
(
LINK_SHARED_LIBS
${
LINK_SHARED_LIBS
}
${
ZLIB_LIBRARIES
}
)
endif
(
ZLIB_FOUND
)
endif
(
NOT ZLIB_FOUND
)
endif
(
NOT ZLIB_USE_EXTERNAL
)
set
(
LINK_
COMP_
LIBS
${
LINK_
COMP_
LIBS
}
${
ZLIB_LIBRARIES
}
)
set
(
LINK_
COMP_
SHARED_LIBS
${
LINK_
COMP_
SHARED_LIBS
}
${
ZLIB_LIBRARIES
}
)
endif
()
endif
()
endif
()
if
(
ZLIB_FOUND
)
set
(
H5_HAVE_FILTER_DEFLATE 1
)
set
(
H5_HAVE_ZLIB_H 1
)
...
...
@@ -44,33 +65,33 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT)
set
(
H5_ZLIB_HEADER
"zlib.h"
)
set
(
ZLIB_INCLUDE_DIR_GEN
${
ZLIB_INCLUDE_DIR
}
)
set
(
ZLIB_INCLUDE_DIRS
${
ZLIB_INCLUDE_DIRS
}
${
ZLIB_INCLUDE_DIR
}
)
else
(
ZLIB_FOUND
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
SVN
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
else
()
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
GIT
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
EXTERNAL_ZLIB_LIBRARY
(
${
HDF5_ALLOW_EXTERNAL_SUPPORT
}
)
set
(
H5_HAVE_FILTER_DEFLATE 1
)
set
(
H5_HAVE_ZLIB_H 1
)
set
(
H5_HAVE_LIBZ 1
)
message
(
STATUS
"Filter ZLIB is built"
)
else
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
else
()
message
(
FATAL_ERROR
" ZLib is Required for ZLib support in HDF5"
)
endif
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
endif
(
ZLIB_FOUND
)
else
(
NOT H5_ZLIB_HEADER
)
endif
()
endif
()
else
()
# This project is being called from within another and ZLib is already configured
set
(
H5_HAVE_FILTER_DEFLATE 1
)
set
(
H5_HAVE_ZLIB_H 1
)
set
(
H5_HAVE_LIBZ 1
)
endif
(
NOT H5_ZLIB_HEADER
)
endif
()
if
(
H5_HAVE_FILTER_DEFLATE
)
set
(
EXTERNAL_FILTERS
"
${
EXTERNAL_FILTERS
}
DEFLATE"
)
endif
(
H5_HAVE_FILTER_DEFLATE
)
if
(
BUILD_SHARED_LIBS
)
set
(
LINK_SHARED_LIBS
${
LINK_SHARED_LIBS
}
${
ZLIB_SHARED_LIBRARY
}
)
endif
(
BUILD_SHARED_LIBS
)
set
(
LINK_LIBS
${
LINK_LIBS
}
${
ZLIB_STATIC_LIBRARY
}
)
endif
()
if
(
BUILD_SHARED_LIBS
)
set
(
LINK_
COMP_
SHARED_LIBS
${
LINK_
COMP_
SHARED_LIBS
}
${
ZLIB_SHARED_LIBRARY
}
)
endif
(
)
set
(
LINK_
COMP_
LIBS
${
LINK_
COMP_
LIBS
}
${
ZLIB_STATIC_LIBRARY
}
)
INCLUDE_DIRECTORIES
(
${
ZLIB_INCLUDE_DIRS
}
)
message
(
STATUS
"Filter ZLIB is ON"
)
endif
(
HDF5_ENABLE_Z_LIB_SUPPORT
)
endif
()
#-----------------------------------------------------------------------------
# Option for SzLib support
...
...
@@ -83,39 +104,39 @@ if (HDF5_ENABLE_SZIP_SUPPORT)
if
(
NOT SZIP_FOUND
)
find_package
(
SZIP
)
# Legacy find
if
(
SZIP_FOUND
)
set
(
LINK_LIBS
${
LINK_LIBS
}
${
SZIP_LIBRARIES
}
)
set
(
LINK_SHARED_LIBS
${
LINK_SHARED_LIBS
}
${
SZIP_LIBRARIES
}
)
endif
(
SZIP_FOUND
)
endif
(
NOT SZIP_FOUND
)
endif
(
NOT SZIP_USE_EXTERNAL
)
set
(
LINK_
COMP_
LIBS
${
LINK_
COMP_
LIBS
}
${
SZIP_LIBRARIES
}
)
set
(
LINK_
COMP_
SHARED_LIBS
${
LINK_
COMP_
SHARED_LIBS
}
${
SZIP_LIBRARIES
}
)
endif
()
endif
()
endif
()
if
(
SZIP_FOUND
)
set
(
H5_HAVE_FILTER_SZIP 1
)
set
(
H5_HAVE_SZLIB_H 1
)
set
(
H5_HAVE_LIBSZ 1
)
set
(
SZIP_INCLUDE_DIR_GEN
${
SZIP_INCLUDE_DIR
}
)
set
(
SZIP_INCLUDE_DIRS
${
SZIP_INCLUDE_DIRS
}
${
SZIP_INCLUDE_DIR
}
)
else
(
SZIP_FOUND
)
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
SVN
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
else
()
if
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"
GIT
"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
EXTERNAL_SZIP_LIBRARY
(
${
HDF5_ALLOW_EXTERNAL_SUPPORT
}
${
HDF5_ENABLE_SZIP_ENCODING
}
)
set
(
H5_HAVE_FILTER_SZIP 1
)
set
(
H5_HAVE_SZLIB_H 1
)
set
(
H5_HAVE_LIBSZ 1
)
message
(
STATUS
"Filter SZIP is built"
)
else
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
else
()
message
(
FATAL_ERROR
"SZIP is Required for SZIP support in HDF5"
)
endif
(
HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"SVN"
OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES
"TGZ"
)
endif
(
SZIP_FOUND
)
if
(
BUILD_SHARED_LIBS
)
set
(
LINK_SHARED_LIBS
${
LINK_SHARED_LIBS
}
${
SZIP_SHARED_LIBRARY
}
)
endif
(
BUILD_SHARED_LIBS
)
set
(
LINK_LIBS
${
LINK_LIBS
}
${
SZIP_STATIC_LIBRARY
}
)
endif
()
endif
()
if
(
BUILD_SHARED_LIBS
)
set
(
LINK_
COMP_
SHARED_LIBS
${
LINK_
COMP_
SHARED_LIBS
}
${
SZIP_SHARED_LIBRARY
}
)
endif
(
)
set
(
LINK_
COMP_
LIBS
${
LINK_
COMP_
LIBS
}
${
SZIP_STATIC_LIBRARY
}
)
INCLUDE_DIRECTORIES
(
${
SZIP_INCLUDE_DIRS
}
)
message
(
STATUS
"Filter SZIP is ON"
)
if
(
H5_HAVE_FILTER_SZIP
)
set
(
EXTERNAL_FILTERS
"
${
EXTERNAL_FILTERS
}
DECODE"
)
endif
(
H5_HAVE_FILTER_SZIP
)
endif
()
if
(
HDF5_ENABLE_SZIP_ENCODING
)
set
(
H5_HAVE_SZIP_ENCODER 1
)
set
(
EXTERNAL_FILTERS
"
${
EXTERNAL_FILTERS
}
ENCODE"
)
endif
(
HDF5_ENABLE_SZIP_ENCODING
)
endif
(
HDF5_ENABLE_SZIP_SUPPORT
)
endif
()
endif
()
CMakeInstallation.cmake
View file @
98f70a20
#
# 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
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
include
(
CMakePackageConfigHelpers
)
#-----------------------------------------------------------------------------
...
...
@@ -8,42 +19,36 @@ if (WIN32)
find_program
(
NSIS_EXECUTABLE NSIS.exe PATHS
"$ENV{ProgramFiles}
\\
NSIS"
"$ENV{ProgramFiles
${
PF_ENV_EXT
}
}
\\
NSIS"
)
if
(
NOT CPACK_WIX_ROOT
)
file
(
TO_CMAKE_PATH
"$ENV{WIX}"
CPACK_WIX_ROOT
)
endif
()
endif
()
find_program
(
WIX_EXECUTABLE candle PATHS
"
${
CPACK_WIX_ROOT
}
/bin"
)
endif
(
WIN32
)
endif
()
#-----------------------------------------------------------------------------
# Add file(s) to CMake Install
#-----------------------------------------------------------------------------
if
(
NOT HDF5_INSTALL_NO_DEVELOPMENT
)
install
(
FILES
${
PROJECT_BINARY_DIR
}
/H5pubconf.h
DESTINATION
${
HDF5_INSTALL_INCLUDE_DIR
}
COMPONENT headers
)
endif
(
NOT HDF5_INSTALL_NO_DEVELOPMENT
)
#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects
#-----------------------------------------------------------------------------
if
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
install
(
EXPORT
${
HDF5_EXPORTED_TARGETS
}
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
FILE
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-targets.cmake
COMPONENT configinstall
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
#-----------------------------------------------------------------------------
# Export all exported targets to the build tree for use by parent project
#-----------------------------------------------------------------------------
if
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
export
(
TARGETS
${
HDF5_LIBRARIES_TO_EXPORT
}
${
HDF5_LIB_DEPENDENCIES
}
FILE
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-targets.cmake
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
if
(
HDF5_EXPORTED_TARGETS
)
install
(
EXPORT
${
HDF5_EXPORTED_TARGETS
}
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
/hdf5
FILE
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-targets.cmake
NAMESPACE
${
HDF5_PACKAGE
}
::
COMPONENT configinstall
)
endif
()
#-----------------------------------------------------------------------------
# Export all exported targets to the build tree for use by parent project
#-----------------------------------------------------------------------------
if
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
export
(
TARGETS
${
HDF5_LIBRARIES_TO_EXPORT
}
${
HDF5_LIB_DEPENDENCIES
}
${
HDF5_UTILS_TO_EXPORT
}
FILE
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-targets.cmake
NAMESPACE
${
HDF5_PACKAGE
}
::
)
endif
()
endif
()
#-----------------------------------------------------------------------------
# Set includes needed for build
...
...
@@ -69,26 +74,11 @@ set (CURRENT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}" )
configure_package_config_file
(
${
HDF_RESOURCES_DIR
}
/hdf5-config.cmake.in
"
${
HDF5_BINARY_DIR
}
/
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-config.cmake"
INSTALL_DESTINATION
"
${
HDF5_INSTALL_CMAKE_DIR
}
"
INSTALL_DESTINATION
"
${
HDF5_INSTALL_CMAKE_DIR
}
/hdf5
"
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
INSTALL_PREFIX
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
#-----------------------------------------------------------------------------
# Configure the FindHDF5.cmake file for the install directory
#-----------------------------------------------------------------------------
if
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
configure_file
(
${
HDF_RESOURCES_DIR
}
/FindHDF5.cmake.in
${
HDF5_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/FindHDF5
${
HDF_PACKAGE_EXT
}
.cmake @ONLY
)
install
(
FILES
${
HDF5_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/FindHDF5
${
HDF_PACKAGE_EXT
}
.cmake
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
COMPONENT configinstall
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
#-----------------------------------------------------------------------------
# Configure the hdf5-config.cmake file for the install directory
#-----------------------------------------------------------------------------
...
...
@@ -98,17 +88,17 @@ set (CURRENT_BUILD_DIR "${CMAKE_INSTALL_PREFIX}" )
configure_package_config_file
(
${
HDF_RESOURCES_DIR
}
/hdf5-config.cmake.in
"
${
HDF5_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-config.cmake"
INSTALL_DESTINATION
"
${
HDF5_INSTALL_CMAKE_DIR
}
"
INSTALL_DESTINATION
"
${
HDF5_INSTALL_CMAKE_DIR
}
/hdf5
"
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
)
if
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
install
(
FILES
${
HDF5_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-config.cmake
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
/hdf5
COMPONENT configinstall
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
endif
()
#-----------------------------------------------------------------------------
# Configure the hdf5-config-version .cmake file for the install directory
...
...
@@ -120,22 +110,22 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED)
)
install
(
FILES
${
HDF5_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/
${
HDF5_PACKAGE
}${
HDF_PACKAGE_EXT
}
-config-version.cmake
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
DESTINATION
${
HDF5_INSTALL_CMAKE_DIR
}
/hdf5
COMPONENT configinstall
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
endif
()
#-----------------------------------------------------------------------------
# Configure the libhdf5.settings file for the lib info
#-----------------------------------------------------------------------------
if
(
H5_WORDS_BIGENDIAN
)
set
(
BYTESEX big-endian
)
else
(
H5_WORDS_BIGENDIAN
)
else
()
set
(
BYTESEX little-endian
)
endif
(
H5_WORDS_BIGENDIAN
)
endif
()
configure_file
(
${
HDF_RESOURCES_DIR
}
/libhdf5.settings.cmake.in
${
HDF5_BINARY_DIR
}
/libhdf5.settings @ONLY
${
HDF5_BINARY_DIR
}
/libhdf5.settings
ESCAPE_QUOTES
@ONLY
)
install
(
FILES
${
HDF5_BINARY_DIR
}
/libhdf5.settings
...
...
@@ -144,25 +134,7 @@ install (
)
#-----------------------------------------------------------------------------
# Create pkgconfig files
#-----------------------------------------------------------------------------
#foreach (libs ${LINK_LIBS})
# set (LIBS "${LIBS} -l${libs}")
#endforeach (libs ${LINK_LIBS})
#foreach (libs ${HDF5_LIBRARIES_TO_EXPORT})
# set (HDF5LIBS "${HDF5LIBS} -l${libs}")
#endforeach (libs ${HDF5_LIBRARIES_TO_EXPORT})
#configure_file (
# ${HDF_RESOURCES_DIR}/libhdf5.pc.in
# ${HDF5_BINARY_DIR}/CMakeFiles/libhdf5.pc @ONLY
#)
#install (
# FILES ${HDF5_BINARY_DIR}/CMakeFiles/libhdf5.pc
# DESTINATION ${HDF5_INSTALL_LIB_DIR}/pkgconfig
#)
#-----------------------------------------------------------------------------
# Configure the HDF518_Examples.cmake file and the examples
# Configure the HDF5_Examples.cmake file and the examples
#-----------------------------------------------------------------------------
option
(
HDF5_PACK_EXAMPLES
"Package the HDF5 Library Examples Compressed File"
OFF
)
if
(
HDF5_PACK_EXAMPLES
)
...
...
@@ -185,14 +157,26 @@ if (HDF5_PACK_EXAMPLES)
USE_SOURCE_PERMISSIONS
COMPONENT hdfdocuments
)
install
(
FILES
${
HDF5_SOURCE_DIR
}
/release_docs/USING_CMake_Examples.txt
DESTINATION
${
HDF5_INSTALL_DATA_DIR
}
COMPONENT hdfdocuments
)
endif
(
EXISTS
"
${
HDF5_EXAMPLES_COMPRESSED_DIR
}
/
${
HDF5_EXAMPLES_COMPRESSED
}
"
)
endif
(
HDF5_PACK_EXAMPLES
)
endif
()
install
(
FILES
${
HDF5_SOURCE_DIR
}
/release_docs/USING_CMake_Examples.txt
DESTINATION
${
HDF5_INSTALL_DATA_DIR
}
COMPONENT hdfdocuments
)
install
(
FILES
${
HDF_RESOURCES_DIR
}
/CTestScript.cmake
DESTINATION
${
HDF5_INSTALL_DATA_DIR
}
COMPONENT hdfdocuments
)
install
(
FILES
${
HDF_RESOURCES_DIR
}
/HDF5_Examples_options.cmake
DESTINATION
${
HDF5_INSTALL_DATA_DIR
}
COMPONENT hdfdocuments
)
endif
()
#-----------------------------------------------------------------------------
# Configure the README.txt file for the binary package
...
...
@@ -204,7 +188,7 @@ HDF_README_PROPERTIES(HDF5_BUILD_FORTRAN)
#-----------------------------------------------------------------------------
if
(
WIN32
)
configure_file
(
${
HDF5_SOURCE_DIR
}
/COPYING
${
HDF5_BINARY_DIR
}
/COPYING.txt @ONLY
)
endif
(
WIN32
)
endif
()
#-----------------------------------------------------------------------------
# Add Document File(s) to CMake Install
...
...
@@ -227,10 +211,11 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED)
${
release_files
}
${
HDF5_SOURCE_DIR
}
/release_docs/USING_HDF5_VS.txt
)
endif
(
WIN32
)
endif
()
if
(
HDF5_PACK_INSTALL_DOCS
)
set
(
release_files
${
release_files
}
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL_Warnings.txt
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL_CMake.txt
${
HDF5_SOURCE_DIR
}
/release_docs/HISTORY-1_8.txt
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL
...
...
@@ -240,40 +225,40 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED)
${
release_files
}
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL_Windows.txt
)
endif
(
WIN32
)
endif
()
if
(
CYGWIN
)
set
(
release_files
${
release_files
}
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL_Cygwin.txt
)
endif
(
CYGWIN
)
endif
()
if
(
HDF5_ENABLE_PARALLEL
)
set
(
release_files
${
release_files
}
${
HDF5_SOURCE_DIR
}
/release_docs/INSTALL_parallel
)
endif
(
HDF5_ENABLE_PARALLEL
)
endif
(
HDF5_PACK_INSTALL_DOCS
)
endif
()
endif
()
install
(
FILES
${
release_files
}
DESTINATION
${
HDF5_INSTALL_DATA_DIR
}
COMPONENT hdfdocuments
)
endif
(
EXISTS
"
${
HDF5_SOURCE_DIR
}
/release_docs"
AND IS_DIRECTORY
"
${
HDF5_SOURCE_DIR
}
/release_docs"
)
endif
(
NOT HDF5_EXTERNALLY_CONFIGURED
)
endif
()
endif
()
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
if
(
CMAKE_HOST_UNIX
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_INSTALL_PREFIX
}
/HDF_Group/
${
HDF5_PACKAGE_NAME
}
/
${
HDF5_PACKAGE_VERSION
}
"
CACHE PATH
"Install path prefix, prepended onto install directories."
FORCE
)
else
(
CMAKE_HOST_UNIX
)
else
()
GetDefaultWindowsPrefixBase
(
CMAKE_GENERIC_PROGRAM_FILES
)
set
(
CMAKE_INSTALL_PREFIX
"
${
CMAKE_GENERIC_PROGRAM_FILES
}
/HDF_Group/
${
HDF5_PACKAGE_NAME
}
/
${
HDF5_PACKAGE_VERSION
}
"
CACHE PATH
"Install path prefix, prepended onto install directories."
FORCE
)
set
(
CMAKE_GENERIC_PROGRAM_FILES
)
endif
(
CMAKE_HOST_UNIX
)
endif
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
endif
()
endif
()
#-----------------------------------------------------------------------------
# Set the cpack variables
...
...
@@ -283,9 +268,9 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
set
(
CPACK_PACKAGE_NAME
"
${
HDF5_PACKAGE_NAME
}
"
)
if
(
CDASH_LOCAL
)
set
(
CPACK_PACKAGE_VERSION
"
${
HDF5_PACKAGE_VERSION
}
"
)
else
(
CDASH_LOCAL
)
else
()
set
(
CPACK_PACKAGE_VERSION
"
${
HDF5_PACKAGE_VERSION_STRING
}
"
)
endif
(
CDASH_LOCAL
)
endif
()
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
HDF5_PACKAGE_VERSION_MAJOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
${
HDF5_PACKAGE_VERSION_MINOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
""
)
...
...
@@ -293,13 +278,13 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
set
(
CPACK_PACKAGE_DESCRIPTION_FILE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/release_docs/RELEASE.txt"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/release_docs/COPYING"
)
set
(
CPACK_RESOURCE_FILE_README
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/release_docs/RELEASE.txt"
)
endif
(
EXISTS
"
${
HDF5_SOURCE_DIR
}
/release_docs"
)
endif
()
set
(
CPACK_PACKAGE_RELOCATABLE TRUE
)
if
(
OVERRIDE_INSTALL_VERSION
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
"
${
CPACK_PACKAGE_VENDOR
}
/
${
CPACK_PACKAGE_NAME
}
/
${
OVERRIDE_INSTALL_VERSION
}
"
)
else
(
OVERRIDE_INSTALL_VERSION
)
else
()
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
"
${
CPACK_PACKAGE_VENDOR
}
/
${
CPACK_PACKAGE_NAME
}
/
${
CPACK_PACKAGE_VERSION
}
"
)
endif
(
OVERRIDE_INSTALL_VERSION
)
endif
()
set
(
CPACK_PACKAGE_ICON
"
${
HDF_RESOURCES_EXT_DIR
}
/hdf.bmp"
)
set
(
CPACK_GENERATOR
"TGZ"
)
...
...
@@ -308,7 +293,7 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
if
(
NSIS_EXECUTABLE
)
list
(
APPEND CPACK_GENERATOR
"NSIS"
)
endif
(
NSIS_EXECUTABLE
)
endif
()
# Installers for 32- vs. 64-bit CMake:
# - Root install directory (displayed to end user at installer-run time)
# - "NSIS package/display name" (text used in the installer GUI)
...
...
@@ -317,10 +302,10 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
if
(
CMAKE_CL_64
)
set
(
CPACK_NSIS_INSTALL_ROOT
"$PROGRAMFILES64"
)
set
(
CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"
${
CPACK_PACKAGE_NAME
}
-
${
CPACK_PACKAGE_VERSION
}
(Win64)"
)
else
(
CMAKE_CL_64
)
else
()
set
(
CPACK_NSIS_INSTALL_ROOT
"$PROGRAMFILES"
)
set
(
CPACK_PACKAGE_INSTALL_REGISTRY_KEY
"
${
CPACK_PACKAGE_NAME
}
-
${
CPACK_PACKAGE_VERSION
}
"
)
endif
(
CMAKE_CL_64
)
endif
()
# set the install/unistall icon used for the installer itself
# There is a bug in NSI that does not handle full unix paths properly.
set
(
CPACK_NSIS_MUI_ICON
"
${
HDF_RESOURCES_EXT_DIR
}
\\\\
hdf.ico"
)
...
...
@@ -330,15 +315,15 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
set
(
CPACK_NSIS_DISPLAY_NAME
"
${
CPACK_NSIS_PACKAGE_NAME
}
"
)
if
(
OVERRIDE_INSTALL_VERSION
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
"
${
CPACK_PACKAGE_VENDOR
}
\\\\
${
CPACK_PACKAGE_NAME
}
\\\\
${
OVERRIDE_INSTALL_VERSION
}
"
)
else
(
OVERRIDE_INSTALL_VERSION
)
else
()
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
"
${
CPACK_PACKAGE_VENDOR
}
\\\\
${
CPACK_PACKAGE_NAME
}
\\\\
${
CPACK_PACKAGE_VERSION
}
"
)
endif
(
OVERRIDE_INSTALL_VERSION
)
endif
()
set
(
CPACK_NSIS_CONTACT
"
${
HDF5_PACKAGE_BUGREPORT
}
"
)
set
(
CPACK_NSIS_MODIFY_PATH ON
)
if
(
WIX_EXECUTABLE
)
list
(
APPEND CPACK_GENERATOR
"WIX"
)
endif
(
WIX_EXECUTABLE
)
endif
()
#WiX variables
set
(
CPACK_WIX_UNINSTALL
"1"
)
# .. variable:: CPACK_WIX_LICENSE_RTF
...
...
@@ -381,8 +366,9 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
set
(
CPACK_WIX_PROPERTY_ARPHELPLINK
"
${
HDF5_PACKAGE_BUGREPORT
}
"
)
if
(
BUILD_SHARED_LIBS
)