diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2017-08-25 21:55:41 +0200 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2017-08-25 21:55:41 +0200 |
commit | dea057452fc135952c2896efb219b4bf02875617 (patch) | |
tree | 350462a7dc8ea1cf897cdde5e97742253e3c0c64 | |
parent | 0f510c00ebd47f4aef2ddc1f764058d591bc1c80 (diff) |
Added a function returning maintance version name
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/grgsm/constants.h | 7 | ||||
-rw-r--r-- | lib/constants.cc.in | 6 | ||||
-rw-r--r-- | swig/constants.i | 1 |
4 files changed, 14 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7adc09a..7ff7d92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,4 +233,4 @@ include(CPack) # Print summary ######################################################################## message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}") -message(STATUS "Building for version: ${VERSION} / ${LIBVER} / ${BUILD_DATE}") +message(STATUS "Building for version: ${VERSION} / ${LIBVER}") diff --git a/include/grgsm/constants.h b/include/grgsm/constants.h index a96424e..9b66380 100644 --- a/include/grgsm/constants.h +++ b/include/grgsm/constants.h @@ -49,9 +49,14 @@ namespace gr { GRGSM_API const std::string api_version(); /*! - * \brief returnjust the minor version defined by cmake + * \brief return just the minor version defined by cmake */ GRGSM_API const std::string minor_version(); + + /*! + * \brief return just the maint version defined by cmake + */ + GRGSM_API const std::string maint_version(); } /* namespace gsm */ } /* namespace gr */ diff --git a/lib/constants.cc.in b/lib/constants.cc.in index d56f45e..e6d5a51 100644 --- a/lib/constants.cc.in +++ b/lib/constants.cc.in @@ -59,5 +59,11 @@ namespace gr { { return "@MINOR_VERSION@"; } + + const std::string + maint_version() + { + return "@MAINT_VERSION@"; + } } /* namespace gsm */ } /* namespace gr */ diff --git a/swig/constants.i b/swig/constants.i index 1efca59..091bd9a 100644 --- a/swig/constants.i +++ b/swig/constants.i @@ -32,5 +32,6 @@ namespace gr { const std::string major_version(); const std::string api_version(); const std::string minor_version(); + const std::string maint_version(); } /* namespace gsm */ } /* namespace gr */ |