From 48bd3add29e3e4a8e65fc28925141ea4fef2b8b4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 1 Oct 2013 17:01:41 -0500 Subject: [PATCH] Added a make target that prints the version name. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3b2df83..e0637054 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,10 +91,13 @@ SET(MultiMC_VERSION_MAJOR 5) SET(MultiMC_VERSION_MINOR 0) SET(MultiMC_VERSION_REV 0) -# Jenkins build number +# Build number SET(MultiMC_VERSION_BUILD 0 CACHE STRING "Build number.") MESSAGE(STATUS "MultiMC build #${MultiMC_VERSION_BUILD}") +# Custom target to just print the version. +ADD_CUSTOM_TARGET(version echo "Version: ${MultiMC_VERSION_MAJOR}.${MultiMC_VERSION_MINOR}.${MultiMC_VERSION_REV}.${MultiMC_VERSION_BUILD}") + # Check the current Git commit execute_process(COMMAND git rev-parse HEAD WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}