Skip to content

Commit 6bc5d77

Browse files
authored
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"
1 parent 622e4b1 commit 6bc5d77

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ project(ats VERSION 10.2.0)
2929
set(TS_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
3030
set(TS_VERSION_MINOR ${PROJECT_VERSION_MINOR})
3131
set(TS_VERSION_MICRO ${PROJECT_VERSION_PATCH})
32-
set(TS_VERSION_STRING ${TS_VERSION_MAJOR}.${TS_VERSION_MINOR}.${TS_VERSION_MICRO})
32+
set(TS_VERSION_STRING
33+
${TS_VERSION_MAJOR}.${TS_VERSION_MINOR}.${TS_VERSION_MICRO}
34+
CACHE STRING "The version string"
35+
)
3336
math(EXPR TS_VERSION_NUMBER "${TS_VERSION_MAJOR} * 1000000 + ${TS_VERSION_MINOR} * 1000 + ${TS_VERSION_MICRO}")
3437

3538
# We make this a cache entry so that it can be configured to different values

0 commit comments

Comments
 (0)