mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make CMake use the same scm-revision program as Autotools.
So that the Win32 build script has the right file name to copy to code's download folder.
This commit is contained in:
parent
a1b574af4f
commit
b64fe864e9
@ -69,10 +69,10 @@ FIND_PACKAGE(Git)
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gnc-vcs-info.h.in
|
||||
"/* Autogenerated. Do not change. */\n#define GNUCASH_SCM_REV \"@GNUCASH_SCM_REV@\"\n"
|
||||
)
|
||||
|
||||
SET(SCM_REV_COMMAND "${CMAKE_SOURCE_DIR}/util/gnc-vcs-info -r")
|
||||
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/version.cmake
|
||||
"EXECUTE_PROCESS(
|
||||
COMMAND ${GIT_EXECUTABLE} --git-dir ${CMAKE_SOURCE_DIR}/.git log -1 --pretty=format:%h HEAD
|
||||
COMMAND ${SCM_REV_COMMAND} ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GNUCASH_SCM_REV
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user