mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
re-add freediameter sources
This commit is contained in:
parent
811cd72866
commit
e0e35f477f
438 changed files with 127400 additions and 0 deletions
23
lib/freeDiameter-1.2.1/cmake/Modules/GetVersionWithHg.cmake
Normal file
23
lib/freeDiameter-1.2.1/cmake/Modules/GetVersionWithHg.cmake
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# This file is called at build time. It regenerates the version.h file based on the hg version.
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${HGCOMMAND} id -i
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
RESULT_VARIABLE reshash
|
||||
OUTPUT_VARIABLE verhash
|
||||
ERROR_QUIET
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${HGCOMMAND} id -n
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
RESULT_VARIABLE resval
|
||||
OUTPUT_VARIABLE verval
|
||||
ERROR_QUIET
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
if (reshash EQUAL 0)
|
||||
SET(FD_PROJECT_VERSION_HG "${verval}(${verhash})")
|
||||
message(STATUS "Source version: ${FD_PROJECT_VERSION_HG}")
|
||||
endif (reshash EQUAL 0)
|
||||
|
||||
CONFIGURE_FILE(${SRC} ${DST})
|
||||
Loading…
Add table
Add a link
Reference in a new issue