From 752aaeffcffc3791ec41f4b1ce1ca1f72b399c12 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 22 Jan 2022 16:46:41 +0000 Subject: [PATCH] Used Bloom version number from CMakeLists.txt file instead of repeating --- CMakeLists.txt | 2 ++ src/Application.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0959140..4152a1ae 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ set(CMAKE_BUILD_RPATH_USE_ORIGIN true) set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib") set(CMAKE_BUILD_RPATH ${CMAKE_INSTALL_RPATH}) +add_compile_definitions(BLOOM_VERSION="${CMAKE_PROJECT_VERSION}") + if (${CMAKE_BUILD_TYPE} STREQUAL "Debug") add_compile_definitions(BLOOM_DEBUG_BUILD) diff --git a/src/Application.hpp b/src/Application.hpp index 10b43e8b..26330f0e 100644 --- a/src/Application.hpp +++ b/src/Application.hpp @@ -33,7 +33,7 @@ namespace Bloom class Application: public Thread { public: - static const inline VersionNumber VERSION = VersionNumber(0, 5, 0); + static const inline VersionNumber VERSION = VersionNumber(BLOOM_VERSION); explicit Application() = default;