Make CMake output version type info
This commit is contained in:
parent
d7564a51ce
commit
87b12a63a1
@ -120,17 +120,23 @@ IF (MultiMC_VERSION_HOTFIX GREATER 0)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# Build a version string to display in the configure logs.
|
# 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}")
|
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}")
|
||||||
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "ReleaseCandidate")
|
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "ReleaseCandidate")
|
||||||
|
MESSAGE(STATUS "Version Type: Release Candidate")
|
||||||
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-rc${MultiMC_VERSION_BUILD}")
|
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-rc${MultiMC_VERSION_BUILD}")
|
||||||
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "Development")
|
ELSEIF (MultiMC_VERSION_TYPE STREQUAL "Development")
|
||||||
|
MESSAGE(STATUS "Version Type: Development")
|
||||||
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-dev${MultiMC_VERSION_BUILD}")
|
SET(MultiMC_VERSION_STRING "${MultiMC_RELEASE_VERSION_NAME}-dev${MultiMC_VERSION_BUILD}")
|
||||||
ELSE ()
|
ELSE ()
|
||||||
MESSAGE(ERROR "Invalid build type.")
|
MESSAGE(ERROR "Invalid build type.")
|
||||||
ENDIF ()
|
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 the update system is enabled, make sure MultiMC_CHANLIST_URL and MultiMC_VERSION_CHANNEL are set.
|
||||||
IF (MultiMC_UPDATER)
|
IF (MultiMC_UPDATER)
|
||||||
|
Loading…
Reference in New Issue
Block a user