summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-09-17 00:53:30 +0200
committerPetr Mrázek <peterix@gmail.com>2019-09-17 00:53:30 +0200
commit0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf (patch)
treee6e9bd5d08bf0c8104055131a022dfa4f0e5c556
parent1ede75aa79b26794a0af94b050bd897111035ae9 (diff)
downloadMultiMC-0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf.tar
MultiMC-0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf.tar.gz
MultiMC-0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf.tar.lz
MultiMC-0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf.tar.xz
MultiMC-0e0a017175d4b7c35b69a6ae9c53f0cdd9891bcf.zip
NOISSUE add a way to extract the version into a TC variable
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index af89e2a4..0bab2955 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 ################################