diff options
author | Andrew <forkk@forkk.net> | 2013-10-01 17:01:41 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-10-01 17:01:41 -0500 |
commit | 48bd3add29e3e4a8e65fc28925141ea4fef2b8b4 (patch) | |
tree | dd15cfaf8474250ec2c8994b29585e82423bb01d | |
parent | 7b863f97f7c4e45ab617a57e2f4e84fb8fc4ed37 (diff) | |
download | MultiMC-48bd3add29e3e4a8e65fc28925141ea4fef2b8b4.tar MultiMC-48bd3add29e3e4a8e65fc28925141ea4fef2b8b4.tar.gz MultiMC-48bd3add29e3e4a8e65fc28925141ea4fef2b8b4.tar.lz MultiMC-48bd3add29e3e4a8e65fc28925141ea4fef2b8b4.tar.xz MultiMC-48bd3add29e3e4a8e65fc28925141ea4fef2b8b4.zip |
Added a make target that prints the version name.
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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} |