mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
490 B
CMake
21 lines
490 B
CMake
7 years ago
|
|
||
|
execute_process(
|
||
|
COMMAND git rev-parse --abbrev-ref HEAD
|
||
5 years ago
|
WORKING_DIRECTORY "@PROJECT_SOURCE_DIR@"
|
||
7 years ago
|
OUTPUT_VARIABLE GIT_BRANCH
|
||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
)
|
||
|
|
||
|
execute_process(
|
||
|
COMMAND git log -1 --format=%h
|
||
5 years ago
|
WORKING_DIRECTORY "@PROJECT_SOURCE_DIR@"
|
||
7 years ago
|
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
)
|
||
|
|
||
|
message(STATUS "Generating build_info.h")
|
||
|
configure_file(
|
||
4 years ago
|
@PROJECT_SOURCE_DIR@/lib/include/srsran/build_info.h.in
|
||
|
@CMAKE_BINARY_DIR@/lib/include/srsran/build_info.h
|
||
7 years ago
|
)
|