mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
generic: append git revision to KDE_VERSION_STRING if possible
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
11ac57a34f
commit
f6d493c99d
1 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,18 @@ set(KDE_VERSION_RELEASE 0)
|
|||
set(KDE_VERSION "${KDE_VERSION_MAJOR}.${KDE_VERSION_MINOR}.${KDE_VERSION_RELEASE}" )
|
||||
set(KDE_VERSION_STRING "${KDE_VERSION}")
|
||||
|
||||
execute_process(
|
||||
COMMAND git rev-parse --short HEAD
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE git_revision
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_QUIET
|
||||
RESULT_VARIABLE _unused
|
||||
)
|
||||
if(git_revision)
|
||||
set(KDE_VERSION_STRING "${KDE_VERSION_STRING} (${git_revision})")
|
||||
endif()
|
||||
|
||||
set(KDE_DISTRIBUTION_TEXT "compiled sources" CACHE STRING "Indicate the distribution in bug reports" )
|
||||
|
||||
set(KDE_DEFAULT_HOME ".katana" CACHE STRING "The default home directory" )
|
||||
|
|
Loading…
Add table
Reference in a new issue