From 57fc8df9b02cd8e3cc1031b7577b7dd799f80379 Mon Sep 17 00:00:00 2001 From: starokurov Date: Mon, 28 Jun 2021 18:16:10 +0300 Subject: [PATCH] added cached variable for the patch version. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6cc2158..30582a7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,9 @@ cmake_minimum_required(VERSION 3.2) -set(PATCH_VERSION "0" CACHE PATH "Number for the patch part of the version.") +set(PATCH_VERSION "1" CACHE INTERNAL "Patch version") +set(PROJECT_VESRION 0.0.${PATCH_VERSION}) -project(helloworld VERSION 0.0.1) +project(helloworld VERSION ${PROJECT_VESRION}) find_package(Boost COMPONENTS unit_test_framework REQUIRED)