summaryrefslogtreecommitdiffstats
path: root/release_docs/USING_HDF5_CMake.txt
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2024-03-05 22:42:08 (GMT)
committerGitHub <noreply@github.com>2024-03-05 22:42:08 (GMT)
commit129d80d2082730d129d56cda1828c4bd74e8f09f (patch)
tree30d9b4e5c2bc5309e11ac1c7ae2a1f1c25c030b9 /release_docs/USING_HDF5_CMake.txt
parente4d9b639d5cb611a028791ef7186ca038ed5e9b8 (diff)
downloadhdf5-129d80d2082730d129d56cda1828c4bd74e8f09f.zip
hdf5-129d80d2082730d129d56cda1828c4bd74e8f09f.tar.gz
hdf5-129d80d2082730d129d56cda1828c4bd74e8f09f.tar.bz2
Update INSTALL files (#4052)
Diffstat (limited to 'release_docs/USING_HDF5_CMake.txt')
-rw-r--r--release_docs/USING_HDF5_CMake.txt20
1 files changed, 7 insertions, 13 deletions
diff --git a/release_docs/USING_HDF5_CMake.txt b/release_docs/USING_HDF5_CMake.txt
index 27c421b..0e35a08 100644
--- a/release_docs/USING_HDF5_CMake.txt
+++ b/release_docs/USING_HDF5_CMake.txt
@@ -39,7 +39,7 @@ I. Preconditions
1. We suggest you obtain the latest CMake for your platform from the Kitware
web site. The HDF5 1.15.x product requires a minimum CMake version
- of 3.18. If you are using VS2022, the minimum version is 3.21.
+ of 3.18. If you are using VS2022, the minimum CMake version is 3.21.
2. You have installed the HDF5 library built with CMake, by executing
the HDF Install Utility (the *.msi file in the binary package for
@@ -93,9 +93,6 @@ Go through these steps to build HDF5 applications with CMake.
4. Test HDF5 Applications
These steps are described in more detail below.
-
-
-
1. Run CMake
The visual CMake executable is named "cmake-gui.exe" on Windows and should be
@@ -119,8 +116,6 @@ These steps are described in more detail below.
* MinGW Makefiles
* NMake Makefiles
* Unix Makefiles
- * Visual Studio 14 2015
- * Visual Studio 14 2015 Win64
* Visual Studio 15 2017
* Visual Studio 15 2017 Win64
* Visual Studio 16 2019
@@ -138,7 +133,7 @@ These steps are described in more detail below.
2.1 Visual CMake users, click the Configure button. If this is the first time you are
running cmake-gui in this directory, you will be prompted for the
- generator you wish to use (for example on Windows, Visual Studio 14 2015 Win64).
+ generator you wish to use (for example on Windows, Visual Studio 16 2019).
CMake will read in the CMakeLists.txt files from the source directory and
display options for the HDF5 project. After the first configure you
can adjust the cache settings and/or specify locations of other programs.
@@ -156,7 +151,7 @@ These steps are described in more detail below.
2.2 Alternative command line example on Windows in c:\MyHDFstuff\hdf5\build directory:
- cmake -G "Visual Studio 14 2015 Win64" -DBUILD_TESTING:BOOL=ON ..
+ cmake -G "Visual Studio 16 2019" -A "x64" -DBUILD_TESTING:BOOL=ON ..
3. Build HDF5 Applications
@@ -205,7 +200,7 @@ source root. Include the following text in the file:
##########################################################
cmake_minimum_required (VERSION 3.18)
-project (HDF5MyApp C CXX)
+project (HDF5MyApp C)
set (LIB_TYPE STATIC) # or SHARED
string(TOLOWER ${LIB_TYPE} SEARCH_TYPE)
@@ -239,11 +234,10 @@ command line and the build folder is created as a sub-folder. Windows should
adjust the forward slash to double backslashes, except for the HDF_DIR
environment variable.
-NOTE: this file is available at the HDF web site:
- https://portal.hdfgroup.org/display/support/Building+HDF5+with+CMake
+NOTE: this file is available in the HDF5 repository, for more information see:
+ https://github.com/HDFGroup/hdf5/blob/develop/release_docs/USING_CMake_Examples.txt
- HDF5_Examples.cmake
- HDF5_Examples_options.cmake
+ ctest -S HDF5_Examples.cmake -C Release -V -O test.log
Also available at the HDF web site is a CMake application framework template.
You can quickly add files to the framework and execute the script to compile