This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 2c33d7220ace2a97b0b12c78a7b76685fd2e7a34 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" (cherry picked from commit 6bc5d77e8e64884593ab42285cd3b6bea15d2118) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b448d4f36..115abc243f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,10 @@ project(ats VERSION 10.1.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
