]> source.dussan.org Git - tigervnc.git/commitdiff
Automatically generate RCVERSION
authorPierre Ossman <ossman@cendio.se>
Thu, 27 Oct 2022 09:19:07 +0000 (11:19 +0200)
committerPierre Ossman <ossman@cendio.se>
Thu, 27 Oct 2022 09:19:07 +0000 (11:19 +0200)
Avoid having to update this manually.

CMakeLists.txt

index 3dbb7309a24d5f251462dbf7e77239a4a5cca792..dffde973d1b7064036c69acb383559a9a6e94c19 100644 (file)
@@ -23,7 +23,7 @@ project(tigervnc)
 set(VERSION 1.12.80)
 
 # The RC version must always be four comma-separated numbers
-set(RCVERSION 1,12,80,0)
+string(REPLACE . , RCVERSION "${VERSION}.0")
 
 # Installation paths
 include(GNUInstallDirs)