- 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:
Ben Boeckel 2011-07-01 09:21:23 -04:00 committed by Paul Beckingham
parent 3af5194442
commit 9f2c5a6190
3 changed files with 10 additions and 6 deletions

View file

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