From 287605ca8151f68224c919f45e2ae425cf6849a9 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Wed, 17 May 2017 02:41:41 -0500 Subject: [PATCH] Append -debug to version string (#5765) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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} ***") -- 2.25.1