Commit 144131a8 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed query version info from VCS

parent b9d5e9d6
...@@ -183,6 +183,7 @@ def cmake_version_info(): ...@@ -183,6 +183,7 @@ def cmake_version_info():
output += "-DGIT_BRANCH=\"{}\";".format(version_name["branch"]) output += "-DGIT_BRANCH=\"{}\";".format(version_name["branch"])
output += "-DGIT_HASH=\"{}\";".format(version_name["hash"]) output += "-DGIT_HASH=\"{}\";".format(version_name["hash"])
output += "-DGIT_TIMESTAMP=\"{}\";".format(timestamp) output += "-DGIT_TIMESTAMP=\"{}\";".format(timestamp)
return output
def source_file_name(prefix: str, suffix: str): def source_file_name(prefix: str, suffix: str):
......
...@@ -29,6 +29,7 @@ else() ...@@ -29,6 +29,7 @@ else()
OUTPUT_VARIABLE VERSION_DEFINITIONS OUTPUT_VARIABLE VERSION_DEFINITIONS
) )
add_definitions(${VERSION_DEFINITIONS}) add_definitions(${VERSION_DEFINITIONS})
message(STATUS "Queried version info from git: ${VERSION_DEFINITIONS}")
endif() endif()
#if(NOT APPLE) #if(NOT APPLE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment