From 6efab9ea6f7049154e025d6d16af7d8769651457 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Fri, 26 Apr 2024 11:49:17 +0800 Subject: [PATCH] add version --- CMakeLists.txt | 2 +- include/ylt/version.hpp | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 include/ylt/version.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index f422c7118..b13fec170 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.15) project(yaLanTingLibs - VERSION 0.3.1 + VERSION 0.3.2 DESCRIPTION "yaLanTingLibs" HOMEPAGE_URL "https://github.com/alibaba/yalantinglibs" LANGUAGES CXX diff --git a/include/ylt/version.hpp b/include/ylt/version.hpp new file mode 100644 index 000000000..a0f839084 --- /dev/null +++ b/include/ylt/version.hpp @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2024, Alibaba Group Holding Limited; + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma once + +// Note: Update the version when release a new version. + +// YLT_VERSION % 100 is the sub-minor version +// YLT_VERSION / 100 % 1000 is the minor version +// YLT_VERSION / 100000 is the major version +#define YLT_VERSION 000302 // 0.3.2 \ No newline at end of file