+ show build type

This commit is contained in:
wmayer
2015-05-02 17:56:44 +02:00
parent 440dd257a4
commit b34df5672a
2 changed files with 7 additions and 1 deletions

View File

@@ -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)

View File

@@ -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