From 461de7c540a94741d7c42ff6619d47c33ff5b990 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 11 Aug 2025 14:58:05 +0200 Subject: [PATCH] Remove "v" at the beginning of the version --- cmake/GitVersion.cmake | 1 + common/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/cmake/GitVersion.cmake b/cmake/GitVersion.cmake index 431a7520..5732ce39 100644 --- a/cmake/GitVersion.cmake +++ b/cmake/GitVersion.cmake @@ -13,6 +13,7 @@ execute_process( if (GIT_DESC) string(STRIP ${GIT_DESC} GIT_DESC) + string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) message(STATUS "Setting version to ${GIT_DESC} from git") else() set(GIT_DESC v${CMAKE_PROJECT_VERSION}) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index be306e28..f6b2d36e 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -7,6 +7,7 @@ else() endif() if (GIT_DESC) + string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) configure_file(version.cpp.in version.cpp) else () add_custom_target(wivrn-version ALL