From: bigfoot547 Date: Wed, 17 May 2017 07:41:41 +0000 (-0500) Subject: Append -debug to version string (#5765) X-Git-Tag: 0.4.16~111 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=287605ca8151f68224c919f45e2ae425cf6849a9;p=oweals%2Fminetest.git Append -debug to version string (#5765) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 418856460..09906f895 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,11 @@ elseif(DEVELOPMENT_BUILD) set(VERSION_STRING "${VERSION_STRING}-dev") endif() +if (CMAKE_BUILD_TYPE STREQUAL Debug) + # Append "-debug" to version string + set(VERSION_STRING "${VERSION_STRING}-debug") +endif() + message(STATUS "*** Will build version ${VERSION_STRING} ***")