mirror of
https://github.com/marian-nmt/marian.git
synced 2024-09-11 06:15:56 +03:00
Merge branch 'master' of github.com:marian-nmt/marian-dev
This commit is contained in:
commit
63e1cfe4ad
@ -93,6 +93,7 @@ target_compile_options(marian PUBLIC ${ALL_WARNINGS})
|
||||
# [https://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake]
|
||||
# Git updates .git/logs/HEAD file whenever you pull or commit something.
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/common/git_revision.h
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
COMMAND git log -1 --pretty=format:\#define\ GIT_REVISION\ \"\%h\ \%ai\" > ${CMAKE_CURRENT_SOURCE_DIR}/common/git_revision.h
|
||||
DEPENDS ${CMAKE_SOURCE_DIR}/.git/logs/HEAD
|
||||
VERBATIM
|
||||
|
Loading…
Reference in New Issue
Block a user