Skip to content
Snippets Groups Projects
Commit c0751144 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Update __PROGRAM_VERSION__ with git current branch, git current commit hash...

Update __PROGRAM_VERSION__ with git current branch, git current commit hash and git current tag only if the current commit is tagged only on the main project
parent 94526934
No related branches found
No related tags found
No related merge requests found
Pipeline #270051 passed
...@@ -7,8 +7,8 @@ include(create_version.cmake) ...@@ -7,8 +7,8 @@ include(create_version.cmake)
# programDescritpion : description of the program/library # programDescritpion : description of the program/library
# programHomePage : home page of the program/library # programHomePage : home page of the program/library
function(phoenix_base_project programName programVersion programDescritpion programHomePage) function(phoenix_base_project programName programVersion programDescritpion programHomePage)
create_version("${programName}" "${programVersion}")
if(NOT MODULE_MODE) if(NOT MODULE_MODE)
create_version("${programName}" "${programVersion}")
set(PROGRAM_NAME "${programName}" CACHE STRING "name of the current project" FORCE) set(PROGRAM_NAME "${programName}" CACHE STRING "name of the current project" FORCE)
set(PROGRAM_VERSION "${programVersion}" CACHE STRING "version of the current project" FORCE) set(PROGRAM_VERSION "${programVersion}" CACHE STRING "version of the current project" FORCE)
set(PROGRAM_DESCRIPTION_NO_QUOTE "${programDescritpion}" CACHE STRING "description of the current project" FORCE) set(PROGRAM_DESCRIPTION_NO_QUOTE "${programDescritpion}" CACHE STRING "description of the current project" FORCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment