From 127ed856387cb82bf9403d4837bd43d95bf14344 Mon Sep 17 00:00:00 2001 From: Dmitry Igrishin Date: Thu, 27 Jan 2022 19:22:07 +0300 Subject: [PATCH] Generate version.hpp --- CMakeLists.txt | 5 +++++ src/common/version.hpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e41758fd..2ddd2ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,6 +138,11 @@ endif() # Targets # ------------------------------------------------------------------------------ +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/common/version.hpp.in" + "${CMAKE_CURRENT_SOURCE_DIR}/src/common/version.hpp" + @ONLY + NEWLINE_STYLE UNIX) + if(PANDA_TIMESWIPE_FIRMWARE_EMU) add_compile_definitions(PANDA_TIMESWIPE_FIRMWARE_EMU) endif() diff --git a/src/common/version.hpp b/src/common/version.hpp index 4c01f63f..130cc4a0 100644 --- a/src/common/version.hpp +++ b/src/common/version.hpp @@ -11,8 +11,8 @@ #define PANDA_TIMESWIPE_COMMON_VERSION_HPP namespace panda::timeswipe::version { -constexpr int major{0}; -constexpr int minor{1}; +constexpr int major{1}; +constexpr int minor{2}; constexpr int patch{1}; } // namespace panda::timeswipe::version