summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorForkk <forkk@forkk.net>2014-01-07 19:30:08 -0600
committerForkk <forkk@forkk.net>2014-01-07 19:30:08 -0600
commit87b12a63a12529933e10c0e9d9fdcb5415f3132f (patch)
treec19c4336ada4d533fde4f50e265442fd0548b4bb /CMakeLists.txt
parentd7564a51ce4a85799bd421dac0c913cb20d25a63 (diff)
downloadMultiMC-87b12a63a12529933e10c0e9d9fdcb5415f3132f.tar
MultiMC-87b12a63a12529933e10c0e9d9fdcb5415f3132f.tar.gz
MultiMC-87b12a63a12529933e10c0e9d9fdcb5415f3132f.tar.lz
MultiMC-87b12a63a12529933e10c0e9d9fdcb5415f3132f.tar.xz
MultiMC-87b12a63a12529933e10c0e9d9fdcb5415f3132f.zip
Make CMake output version type info
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33183b9d..274e4155 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,17 +120,23 @@ IF (MultiMC_VERSION_HOTFIX GREATER 0)
ENDIF()
# Build a version string to display in the configure logs.
-IF (MultiMC_VERSION_TYPE STREQUAL "Custom" OR MultiMC_VERSION_TYPE STREQUAL "Release")
+IF (MultiMC_VERSION_TYPE STREQUAL "Custom")
+ MESSAGE(STATUS "Version Type: Custom")
+ SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}")
+ELSEIF (MultiMC_VERSION_TYPE STREQUAL "Release")
+ MESSAGE(STATUS "Version Type: Stable Release")
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}")
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "ReleaseCandidate")
+ MESSAGE(STATUS "Version Type: Release Candidate")
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-rc${MultiMC_VERSION_BUILD}")
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "Development")
+ MESSAGE(STATUS "Version Type: Development")
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-dev${MultiMC_VERSION_BUILD}")
ELSE ()
MESSAGE(ERROR "Invalid build type.")
ENDIF ()
-MESSAGE(STATUS "MultiMC 5 version ${MultiMC_VERSION_STRING}")
+MESSAGE(STATUS "MultiMC 5 Version: ${MultiMC_VERSION_STRING}")
# If the update system is enabled, make sure MultiMC_CHANLIST_URL and MultiMC_VERSION_CHANNEL are set.
IF (MultiMC_UPDATER)