Skip to content

Commit

Permalink
better handling of THALLIUM_VERSION_NUM
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Aug 23, 2024
1 parent c792c92 commit ac8ca10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ set (THALLIUM_VERSION_MINOR 14)
set (THALLIUM_VERSION_PATCH 0)
set (thallium-vers "${THALLIUM_VERSION_MAJOR}.${THALLIUM_VERSION_MINOR}")
set (THALLIUM_VERSION "${thallium-vers}.${THALLIUM_VERSION_PATCH}")
math (EXPR THALLIUM_VERSION_NUM "${THALLIUM_VERSION_MAJOR}*1000000 + ${THALLIUM_VERSION_MINOR}*1000 + ${THALLIUM_VERSION_PATCH}")

option (ENABLE_TESTS "Enable tests" OFF)
option (ENABLE_EXAMPLES "Enable examples" OFF)
Expand Down
2 changes: 1 addition & 1 deletion include/thallium/config.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#define THALLIUM_VERSION_MINOR @THALLIUM_VERSION_MINOR@
#define THALLIUM_VERSION_PATCH @THALLIUM_VERSION_PATCH@
#define THALLIUM_VERSION "@THALLIUM_VERSION@"
#define THALLIUM_VERSION_NUM (THALLIUM_VERSION_MAJOR*100000 + THALLIUM_VERSION_MINOR*100 + THALLIUM_VERSION_PATCH)
#define THALLIUM_VERSION_NUM @THALLIUM_VERSION_NUM@

0 comments on commit ac8ca10

Please sign in to comment.