From f39bcb0cd0ba749f592b30cc9ccbaba1c5bb3abd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:58:42 +1000 Subject: cmake: strip prefixed versions when passed in --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8689d04..bbf604a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,10 +10,10 @@ if(NOT DEFINED VERSION) if("${VERSION}" STREQUAL "") message(FATAL_ERROR "VERSION is not set and failed to get from git") endif() - - string(REGEX REPLACE "^v" "" VERSION "${VERSION}") endif() +string(REGEX REPLACE "^v" "" VERSION "${VERSION}") + project(caelestia-shell VERSION ${VERSION} LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) -- cgit v1.2.3-freya