Diagnostics

- Display debug/release build type in the diagnostics command.
This commit is contained in:
Paul Beckingham 2014-05-31 12:12:40 -04:00
parent 744f0f55ac
commit 190b6fe635
3 changed files with 11 additions and 0 deletions

View file

@ -96,6 +96,7 @@
- Regular expressions are now enabled by default.
- New verbosity token 'filter' shows the complete filter used by the last
command.
- Display debug/release build type in the diagnostics command.
------ current release ---------------------------

View file

@ -12,6 +12,8 @@
#define PACKAGE_VERSION "${PACKAGE_VERSION}"
#define PACKAGE_STRING "${PACKAGE_STRING}"
#define CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
/* Installation details */
#define TASK_RCDIR "${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}"

View file

@ -174,6 +174,14 @@ int CmdDiagnostics::execute (std::string& output)
#endif
#else
<< "n/a"
#endif
<< "\n";
out << " Build type: "
#ifdef CMAKE_BUILD_TYPE
<< CMAKE_BUILD_TYPE
#else
<< "-"
#endif
<< "\n\n";