From dea057452fc135952c2896efb219b4bf02875617 Mon Sep 17 00:00:00 2001 From: Piotr Krysik Date: Fri, 25 Aug 2017 21:55:41 +0200 Subject: Added a function returning maintance version name --- CMakeLists.txt | 2 +- include/grgsm/constants.h | 7 ++++++- lib/constants.cc.in | 6 ++++++ 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 */ -- cgit v1.2.3