build: derive the project version from VMSIG_VERSION so one tag drives every package + the .so version

This commit is contained in:
2026-06-22 20:35:10 +03:00
parent 0289817821
commit 6fea392d46
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(vmsig VERSION 0.3.4 LANGUAGES C)
# Single source of truth for the version: CI passes -DVMSIG_VERSION=${TAG#v}, so the project
# version (-> libvgpu-perception SONAME/.so version) and the .deb version come from one tag.
set(VMSIG_VERSION "0.3.4" CACHE STRING "Release version (MAJOR.MINOR.PATCH); CI passes the tag")
project(vmsig VERSION ${VMSIG_VERSION} LANGUAGES C)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)