From 6cd9220079a1efb1a2f33842fa614521a31bf0d5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 2 May 2015 17:56:44 +0200 Subject: [PATCH] + show build type --- src/Gui/CMakeLists.txt | 4 ++++ src/Gui/Splashscreen.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Gui/CMakeLists.txt b/src/Gui/CMakeLists.txt index 8faec7585..65c498c70 100644 --- a/src/Gui/CMakeLists.txt +++ b/src/Gui/CMakeLists.txt @@ -4,6 +4,10 @@ if(WIN32) add_definitions(-DFCGui -DQIIS_MAKEDLL -DOVR_OS_WIN32 -DQUARTER_INTERNAL -DQUARTER_MAKE_DLL -DCOIN_DLL) endif(WIN32) +IF(CMAKE_BUILD_TYPE) + add_definitions(-DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE}") +ENDIF(CMAKE_BUILD_TYPE) + if (FREECAD_USE_3DCONNEXION) add_definitions(-D_USE_3DCONNEXION_SDK) if(APPLE) diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index c1420f016..98249c608 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -526,10 +526,12 @@ void AboutDialog::on_copyButton_clicked() } str << "Word size of " << exe << ": " << QSysInfo::WordSize << "-bit" << endl; str << "Version: " << major << "." << minor << "." << build << endl; -#if defined(_DEBUG) +#if defined(_DEBUG) || defined(DEBUG) str << "Build type: Debug" << endl; #elif defined(NDEBUG) str << "Build type: Release" << endl; +#elif defined(CMAKE_BUILD_TYPE) + str << "Build type: " << CMAKE_BUILD_TYPE << endl; #else str << "Build type: Unknown" << endl; #endif