mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CMake
- improve compilation by removing the git sha1 dependency into its own include file that is just used 2 times instead of auto.h that is included in more places.
This commit is contained in:
parent
792eab8621
commit
32235ca60a
6 changed files with 14 additions and 2 deletions
|
@ -9,6 +9,8 @@ if (EXISTS .git/index)
|
|||
set (HAVE_COMMIT true)
|
||||
execute_process (COMMAND git log -1 --pretty=format:%h
|
||||
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue