mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
56ae551cbd
* add version number for hyperion and json level * add new jsonrpc_version in HyperionConfig.h.in add new hard coded version number for hyperion
10 lines
490 B
CMake
10 lines
490 B
CMake
|
|
execute_process( COMMAND git log -1 --format=%cn-%t/%h-%ct WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE BUILD_ID ERROR_QUIET )
|
|
execute_process( COMMAND sh -c "git branch | grep '^*' | sed 's;^*;;g' " WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE VERSION_ID ERROR_QUIET )
|
|
|
|
STRING ( STRIP "${BUILD_ID}" BUILD_ID )
|
|
STRING ( STRIP "${VERSION_ID}" VERSION_ID )
|
|
SET ( HYPERION_BUILD_ID "${VERSION_ID} (${BUILD_ID})" )
|
|
message ( STATUS "Current Version: ${HYPERION_BUILD_ID}" )
|
|
|