-
-
Notifications
You must be signed in to change notification settings - Fork 333
Clean up some obsolete CMake version conditions in CMakeLists.txt. #6104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -52,10 +52,8 @@ | |||||
| cmake_policy (SET CMP0127 NEW) | ||||||
| endif () | ||||||
|
|
||||||
| # Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24: | ||||||
| if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") | ||||||
| cmake_policy(SET CMP0135 NEW) | ||||||
| endif() | ||||||
| # Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake versions > 3.24: | ||||||
| cmake_policy(SET CMP0135 NEW) | ||||||
|
|
||||||
| #----------------------------------------------------------------------------- | ||||||
| # Instructions for use : Normal Build | ||||||
|
|
@@ -86,14 +84,8 @@ | |||||
|
|
||||||
| # Whether the most recently called project() command, in the current scope or above, | ||||||
| # was in the top level CMakeLists.txt file. | ||||||
| if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.21.0") | ||||||
| if(NOT PROJECT_IS_TOP_LEVEL) | ||||||
| set (HDF5_EXTERNALLY_CONFIGURED 1) | ||||||
| endif() | ||||||
| else() | ||||||
| if (NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) | ||||||
| set (HDF5_EXTERNALLY_CONFIGURED 1) | ||||||
| endif() | ||||||
| if(NOT PROJECT_IS_TOP_LEVEL) | ||||||
| set (HDF5_EXTERNALLY_CONFIGURED 1) | ||||||
| endif() | ||||||
|
|
||||||
| #----------------------------------------------------------------------------- | ||||||
|
|
@@ -519,14 +511,14 @@ | |||||
| set (HDF5_VERSION_STRING ${HDF5_PACKAGE_VERSION}) | ||||||
| set (HDF5_VERSION_MAJOR ${HDF5_PACKAGE_VERSION_MAJOR}) | ||||||
| set (HDF5_VERSION_MINOR ${HDF5_PACKAGE_VERSION_MINOR}) | ||||||
| if (H5_VERS_MAJOR GREATER 1) | ||||||
| if (H5_VERS_MINOR GREATER 9) | ||||||
| set (H5_LIBVER_DIR ${H5_VERS_MAJOR}${H5_VERS_MINOR}) | ||||||
| else () | ||||||
| set (H5_LIBVER_DIR ${H5_VERS_MAJOR}0${H5_VERS_MINOR}) | ||||||
| endif() | ||||||
| else () | ||||||
| # H5_LIBVER_DIR is used in HDF5Examples to compile examples from older hdf5 versions. | ||||||
| # Because the range of minor version numbers exceded single digits, a 0 was needed for | ||||||
| # the single digit minor numbers so that version 2.0 (200) will greater than version | ||||||
|
||||||
| # the single digit minor numbers so that version 2.0 (200) will greater than version | |
| # the single digit minor numbers so that version 2.0 (200) will be greater than version |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: The if condition is missing an opening parenthesis. It should be if (HDF5_DEFAULT_API_VERSION MATCHES "v16") instead of if HDF5_DEFAULT_API_VERSION MATCHES "v16").
| if HDF5_DEFAULT_API_VERSION MATCHES "v16") | |
| if (HDF5_DEFAULT_API_VERSION MATCHES "v16") |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,7 +5,6 @@ HDF5 version 2.0.1 currently under development | |||||
| > | ||||||
| > It's happened—the day we've all been dreading—or eagerly anticipating, depending on your perspective. Yes, we have switched to CMake-only builds in HDF5. | ||||||
| > | ||||||
| > The [PR stripping all autotools](https://github.com/HDFGroup/hdf5/pull/5308) was merged into the "develop" branch on **March 10, 2025**. Starting with HDF5 2.0, *only* the CMake build system is supported. | ||||||
|
|
||||||
| ![HDF5 Logo][u3] | ||||||
|
|
||||||
|
|
@@ -92,9 +91,10 @@ HDF5 does not follow a regular release schedule. Instead, updates are based on t | |||||
| introduction of new features and the resolution of bugs. However, we aim to have at | ||||||
| least one annual release for each maintenance branch. | ||||||
|
|
||||||
| > The [PR stripping all autotools](https://github.com/HDFGroup/hdf5/pull/5308) was merged into the "develop" branch on **March 10, 2025**. . | ||||||
|
||||||
| > The [PR stripping all autotools](https://github.com/HDFGroup/hdf5/pull/5308) was merged into the "develop" branch on **March 10, 2025**. . | |
| > The [PR stripping all autotools](https://github.com/HDFGroup/hdf5/pull/5308) was merged into the "develop" branch on **March 10, 2025**. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typographical error: "exceded" should be corrected to "exceeded".