Skip to content

Commit

Permalink
Add prerelease identifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Jul 29, 2024
1 parent 1b42730 commit 73d813f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.13)
cmake_policy(VERSION 3.13)

project(HighFive VERSION 3.0.0)
set(HIGHFIVE_VERSION_PRERELEASE 1)

# Configure HighFive
# ------------------
Expand Down
5 changes: 4 additions & 1 deletion include/highfive/H5Version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#define HIGHFIVE_VERSION_MINOR 0
#define HIGHFIVE_VERSION_PATCH 0

// Undefined for regular releases.
#define HIGHFIVE_VERSION_PRERELEASE 1

/** \brief Concatenated representation of the HighFive version.
*
* \warning The macro `HIGHFIVE_VERSION` by itself isn't valid C/C++.
Expand All @@ -30,4 +33,4 @@
*
* \warning This macro only exists from 2.7.1 onwards.
*/
#define HIGHFIVE_VERSION_STRING "3.0.0"
#define HIGHFIVE_VERSION_STRING "3.0.0-beta1"
5 changes: 4 additions & 1 deletion include/highfive/H5Version.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#define HIGHFIVE_VERSION_MINOR @PROJECT_VERSION_MINOR@
#define HIGHFIVE_VERSION_PATCH @PROJECT_VERSION_PATCH@

// Undefined for regular releases.
#define HIGHFIVE_VERSION_PRERELEASE @HIGHFIVE_VERSION_PRERELEASE@

/** \brief Concatenated representation of the HighFive version.
*
* \warning The macro `HIGHFIVE_VERSION` by itself isn't valid C/C++.
Expand All @@ -30,4 +33,4 @@
*
* \warning This macro only exists from 2.7.1 onwards.
*/
#define HIGHFIVE_VERSION_STRING "@PROJECT_VERSION@"
#define HIGHFIVE_VERSION_STRING "@PROJECT_VERSION@-beta@HIGHFIVE_VERSION_PRERELEASE@"

0 comments on commit 73d813f

Please sign in to comment.