From 6a54180cb51118fcb833a4da5929d494a6cf1272 Mon Sep 17 00:00:00 2001 From: Clark Yang Date: Fri, 19 Jul 2024 16:53:44 +0100 Subject: [PATCH] Rename CPS_VERSION to PROJECT_VERSION --- .github/workflows/test.yml | 4 ++-- CMakeLists.txt | 2 +- CPS_VERSION => PROJECT_VERSION | 0 meson.build | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename CPS_VERSION => PROJECT_VERSION (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 39b609f..6423cf4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: branches: [main] paths: - ".github/workflows/test.yml" - - "CPS_VERSION" + - "PROJECT_VERSION" - "meson.build" - "meson_options.txt" - "src/**" @@ -14,7 +14,7 @@ on: branches: [main] paths: - ".github/workflows/test.yml" - - "CPS_VERSION" + - "PROJECT_VERSION" - "meson.build" - "meson_options.txt" - "src/**" diff --git a/CMakeLists.txt b/CMakeLists.txt index 532ae74..4a2e422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.22) -file(READ CPS_VERSION VERSION) +file(READ PROJECT_VERSION VERSION) string(STRIP ${VERSION} VERSION_STRIPPED) project( cps-config diff --git a/CPS_VERSION b/PROJECT_VERSION similarity index 100% rename from CPS_VERSION rename to PROJECT_VERSION diff --git a/meson.build b/meson.build index c970452..8670658 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,7 @@ project( 'cps-config', 'cpp', - version : files('CPS_VERSION'), + version : files('PROJECT_VERSION'), license : 'MIT', meson_version : '>= 0.64', default_options : ['cpp_std=c++17', 'buildtype=debugoptimized', 'warning_level=2'],