mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug #798
- Applied patches for bug #798 which allows out-of-source builds (thanks to Ben Boeckel). - Added Ben to the AUTHORS file. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
3af5194442
commit
9f2c5a6190
3 changed files with 10 additions and 6 deletions
|
@ -24,14 +24,15 @@ else (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|||
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
|
||||
message ("-- Looking for SHA1 references")
|
||||
if (EXISTS .git/index)
|
||||
if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
|
||||
set (HAVE_COMMIT true)
|
||||
execute_process (COMMAND git log -1 --pretty=format:%h
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE COMMIT)
|
||||
configure_file ( ${CMAKE_SOURCE_DIR}/commit.h.in
|
||||
${CMAKE_SOURCE_DIR}/commit.h)
|
||||
message ("-- Found SHA1 reference: ${COMMIT}")
|
||||
endif (EXISTS .git/index)
|
||||
endif (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
|
||||
|
||||
set (PACKAGE "${PROJECT_NAME}")
|
||||
set (VERSION "${PROJECT_VERSION}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue