Diagnostics
- Display debug/release build type in the diagnostics command.
This commit is contained in:
@@ -96,6 +96,7 @@
|
|||||||
- Regular expressions are now enabled by default.
|
- Regular expressions are now enabled by default.
|
||||||
- New verbosity token 'filter' shows the complete filter used by the last
|
- New verbosity token 'filter' shows the complete filter used by the last
|
||||||
command.
|
command.
|
||||||
|
- Display debug/release build type in the diagnostics command.
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
#define PACKAGE_VERSION "${PACKAGE_VERSION}"
|
#define PACKAGE_VERSION "${PACKAGE_VERSION}"
|
||||||
#define PACKAGE_STRING "${PACKAGE_STRING}"
|
#define PACKAGE_STRING "${PACKAGE_STRING}"
|
||||||
|
|
||||||
|
#define CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}"
|
||||||
|
|
||||||
/* Installation details */
|
/* Installation details */
|
||||||
#define TASK_RCDIR "${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}"
|
#define TASK_RCDIR "${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}"
|
||||||
|
|
||||||
|
|||||||
@@ -174,6 +174,14 @@ int CmdDiagnostics::execute (std::string& output)
|
|||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
<< "n/a"
|
<< "n/a"
|
||||||
|
#endif
|
||||||
|
<< "\n";
|
||||||
|
|
||||||
|
out << " Build type: "
|
||||||
|
#ifdef CMAKE_BUILD_TYPE
|
||||||
|
<< CMAKE_BUILD_TYPE
|
||||||
|
#else
|
||||||
|
<< "-"
|
||||||
#endif
|
#endif
|
||||||
<< "\n\n";
|
<< "\n\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user