This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bc5d77e8e Make TS_VERSION_STRING overridable (#12217)
6bc5d77e8e is described below

commit 6bc5d77e8e64884593ab42285cd3b6bea15d2118
Author: Brian Neradt <[email protected]>
AuthorDate: Mon May 5 16:47:34 2025 -0500

    Make TS_VERSION_STRING overridable (#12217)
    
    This patch (hat tip @cmcfarlen) makes TS_VERSION_STRING a
    user-overridable value. This allows the user to specify an arbitrary
    major.minor.micro version according to their organizational needs
    via something like:
    
    -DTS_VERSION_STRING="10.1.0.65"
---
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 584389fdd6..dafec768db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,10 @@ project(ats VERSION 10.2.0)
 set(TS_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
 set(TS_VERSION_MINOR ${PROJECT_VERSION_MINOR})
 set(TS_VERSION_MICRO ${PROJECT_VERSION_PATCH})
-set(TS_VERSION_STRING 
${TS_VERSION_MAJOR}.${TS_VERSION_MINOR}.${TS_VERSION_MICRO})
+set(TS_VERSION_STRING
+    ${TS_VERSION_MAJOR}.${TS_VERSION_MINOR}.${TS_VERSION_MICRO}
+    CACHE STRING "The version string"
+)
 math(EXPR TS_VERSION_NUMBER "${TS_VERSION_MAJOR} * 1000000 + 
${TS_VERSION_MINOR} * 1000 + ${TS_VERSION_MICRO}")
 
 # We make this a cache entry so that it can be configured to different values

Reply via email to