mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
CMake
- added information to task diag to indicate if task is built with cmake (to support the upcoming move away from autotools).
This commit is contained in:
parent
32235ca60a
commit
be0357da4a
3 changed files with 9 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
include (CheckFunctionExists)
|
include (CheckFunctionExists)
|
||||||
|
|
||||||
|
set (HAVE_CMAKE true)
|
||||||
|
|
||||||
project (task)
|
project (task)
|
||||||
set (PROJECT_VERSION "1.9.4")
|
set (PROJECT_VERSION "1.9.4")
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,10 @@
|
||||||
/* git information */
|
/* git information */
|
||||||
#cmakedefine HAVE_COMMIT
|
#cmakedefine HAVE_COMMIT
|
||||||
|
|
||||||
|
/* cmake information */
|
||||||
|
#cmakedefine HAVE_CMAKE
|
||||||
|
#define CMAKE_VERSION "${CMAKE_VERSION}"
|
||||||
|
|
||||||
/* Compiling platform */
|
/* Compiling platform */
|
||||||
#cmakedefine LINUX
|
#cmakedefine LINUX
|
||||||
#cmakedefine DARWIN
|
#cmakedefine DARWIN
|
||||||
|
|
|
@ -138,6 +138,9 @@ void handleDiagnostics (std::string& outs)
|
||||||
<< " Built: " << __DATE__ << " " << __TIME__ << "\n"
|
<< " Built: " << __DATE__ << " " << __TIME__ << "\n"
|
||||||
#ifdef HAVE_COMMIT
|
#ifdef HAVE_COMMIT
|
||||||
<< " Commit: " << COMMIT << "\n"
|
<< " Commit: " << COMMIT << "\n"
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_CMAKE
|
||||||
|
<< " CMake: " << CMAKE_VERSION << "\n"
|
||||||
#endif
|
#endif
|
||||||
<< " Caps:"
|
<< " Caps:"
|
||||||
#ifdef HAVE_LIBPTHREAD
|
#ifdef HAVE_LIBPTHREAD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue