File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,11 @@ else()
5151 endif ()
5252endif ()
5353
54+ # CMake project() VERSION only accepts numeric components; strip any alpha suffix (e.g. "26.02arch" -> "26.02")
55+ string (REGEX REPLACE "[a-zA-Z]+.*$" "" PROJECT_VERSION_NUMERIC "${PROJECT_VERSION_FROM_CHANGELOG} " )
56+
5457project (mx-service-manager
55- VERSION ${PROJECT_VERSION_FROM_CHANGELOG }
58+ VERSION ${PROJECT_VERSION_NUMERIC }
5659 DESCRIPTION "Service Manager - MX Linux service management tool"
5760 LANGUAGES CXX
5861)
@@ -162,7 +165,7 @@ endif()
162165target_compile_definitions (mx-service-manager PRIVATE
163166 QT_DEPRECATED_WARNINGS
164167 QT_DISABLE_DEPRECATED_BEFORE=0x060000
165- VERSION = "${PROJECT_VERSION } "
168+ VERSION = "${PROJECT_VERSION_FROM_CHANGELOG } "
166169)
167170
168171# Release-specific optimizations
You can’t perform that action at this time.
0 commit comments