Reuse old git describe for package name.
This commit is contained in:
parent
55be22c56c
commit
f2f29a0d7c
1 changed files with 10 additions and 0 deletions
|
|
@ -25,6 +25,16 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
set(TARGET_NAME Linphone)
|
set(TARGET_NAME Linphone)
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")
|
||||||
|
|
||||||
|
|
||||||
|
if (GIT_EXECUTABLE AND NOT(LINPHONEAPP_VERSION))
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} describe --always
|
||||||
|
OUTPUT_VARIABLE LINPHONEAPP_VERSION
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT LINPHONEAPP_VERSION)
|
if(NOT LINPHONEAPP_VERSION)
|
||||||
bc_compute_full_version(LINPHONEAPP_VERSION)
|
bc_compute_full_version(LINPHONEAPP_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue