From 0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 17 Sep 2019 00:53:30 +0200 Subject: [PATCH] NOISSUE add a way to extract the version into a TC variable --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index af89e2a48..0bab2955f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ set(MultiMC_RELEASE_VERSION_NAME "${MultiMC_VERSION_MAJOR}.${MultiMC_VERSION_MIN #### Custom target to just print the version. add_custom_target(version echo "Version: ${MultiMC_RELEASE_VERSION_NAME}") +add_custom_target(tcversion echo "##teamcity[setParameter name='env.MULTIMC_VERSION' value='${MultiMC_RELEASE_VERSION_NAME}']") ################################ 3rd Party Libs ################################