Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PhoenixFileBinaryAnalyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTA-LAPP
PHOENIX_LIBS
PhoenixFileBinaryAnalyzer
Commits
3abf077a
Commit
3abf077a
authored
1 year ago
by
Pierre Aubert
Browse files
Options
Downloads
Patches
Plain Diff
Take account tag in __PROGRAM_VERSION__ if it does exist
parent
c0751144
No related branches found
No related tags found
No related merge requests found
Pipeline
#293664
passed
1 year ago
Stage: BuildTestinstall
Stage: DocCoverage
Stage: deploy
Changes
1
Pipelines
18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/create_version.cmake
+5
-1
5 additions, 1 deletion
cmake/create_version.cmake
with
5 additions
and
1 deletion
cmake/create_version.cmake
+
5
−
1
View file @
3abf077a
...
@@ -20,7 +20,11 @@ function(create_version projectName projectVersion)
...
@@ -20,7 +20,11 @@ function(create_version projectName projectVersion)
OUTPUT_QUIET ERROR_QUIET
)
OUTPUT_QUIET ERROR_QUIET
)
if
(
CURRENT_TIMESTAMP_OK EQUAL 0 AND CURRENT_BRANCH_OK EQUAL 0
)
if
(
CURRENT_TIMESTAMP_OK EQUAL 0 AND CURRENT_BRANCH_OK EQUAL 0
)
set
(
PROGRAM_LONG_VERSION
"(
${
CURRENT_BRANCH
}
${
CURRENT_TIMESTAMP
}
)"
)
if
(
CURRENT_TAG_OK EQUAL 0
)
set
(
PROGRAM_LONG_VERSION
"(
${
CURRENT_BRANCH
}
${
CURRENT_TIMESTAMP
}
, tag: '
${
CURRENT_TAG
}
')"
)
else
()
set
(
PROGRAM_LONG_VERSION
"(
${
CURRENT_BRANCH
}
${
CURRENT_TIMESTAMP
}
)"
)
endif
()
endif
()
endif
()
message
(
STATUS
"Program
${
projectName
}
version
${
projectVersion
}
"
)
message
(
STATUS
"Program
${
projectName
}
version
${
projectVersion
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment