view cmake/Modules/GetVersionWithHg.cmake @ 1430:2af8fe326a8c

rename 3GPP MME-LocationInformation to MME-Location-Information 3GPP TS 29.272 table 7.3.1/1 incorrectly has a space instead of hyphen in the row for MME-Location-Information. Clause 7.3.115 and other references use the correct name. Generated name renamed from MME-LocationInformation.
author Luke Mewburn <luke@mewburn.net>
date Wed, 19 Feb 2020 16:25:08 +1100
parents 9c9f2b75bf95
children
line wrap: on
line source

# 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})
"Welcome to our mercurial repository"