Append -debug to version string (#5765)
authorbigfoot547 <bigfoot547@users.noreply.github.com>
Wed, 17 May 2017 07:41:41 +0000 (02:41 -0500)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 17 May 2017 07:41:41 +0000 (09:41 +0200)
CMakeLists.txt

index 4188564609960b7d9a02ec31f923a9985324b6e7..09906f895bdfd745d81f39fad60d3c449a27019e 100644 (file)
@@ -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} ***")