prefixed git info variable
Some checks failed
fsfw/fsfw/pipeline/pr-development There was a failure building this commit

This commit is contained in:
Robin Müller 2022-04-22 14:38:32 +02:00
parent effecd4662
commit 513ae9dc10
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -45,12 +45,12 @@ add_library(${LIB_FSFW_NAME})
# Version handling # Version handling
include(helpers) include(helpers)
determine_version_with_git("--exclude" "docker_*") determine_version_with_git()
set(GIT_INFO ${GIT_INFO} CACHE STRING "Version information retrieved with git describe") set(FSFW_GIT_INFO ${GIT_INFO} CACHE STRING "Version information retrieved with git describe")
list(GET GIT_INFO 1 FSFW_VERSION) list(GET FSFW_GIT_INFO 1 FSFW_VERSION)
list(GET GIT_INFO 2 FSFW_SUBVERSION) list(GET FSFW_GIT_INFO 2 FSFW_SUBVERSION)
list(GET GIT_INFO 3 FSFW_REVISION) list(GET FSFW_GIT_INFO 3 FSFW_REVISION)
list(GET GIT_INFO 4 FSFW_VERSION_CST_GIT_SHA1) list(GET FSFW_GIT_INFO 4 FSFW_VERSION_CST_GIT_SHA1)
if(NOT FSFW_VERSION) if(NOT FSFW_VERSION)
set(FSFW_VERSION -1) set(FSFW_VERSION -1)
endif() endif()