Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
interfaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
bioroboticslab
biotracker
interfaces
Commits
2a342a8a
Commit
2a342a8a
authored
5 years ago
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
Update use of (git) source version
parent
04d248a7
No related branches found
No related tags found
No related merge requests found
Pipeline
#26498
passed
5 years ago
Stage: build
Stage: package
Stage: deploy
Pipeline: utility
#26503
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+6
-6
6 additions, 6 deletions
CMakeLists.txt
VERSION
+0
-1
0 additions, 1 deletion
VERSION
with
6 additions
and
7 deletions
CMakeLists.txt
+
6
−
6
View file @
2a342a8a
cmake_minimum_required
(
VERSION 3.13
)
file
(
READ VERSION PROJECT
_VERSION
)
exec_program
(
"git"
${
CMAKE_CURRENT_SOURCE_DIR
}
ARGS
"describe --dirty --always --exclude '*'"
OUTPUT_VARIABLE SOURCE
_VERSION
)
project
(
biotracker-interfaces
VERSION
${
PROJECT_VERSION
}
LANGUAGES CXX
)
LANGUAGES CXX
)
include
(
GNUInstallDirs
)
...
...
@@ -38,8 +38,8 @@ include(CMakePackageConfigHelpers)
write_basic_package_version_file
(
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
PROJECT_NAME
}
ConfigVersion.cmake
VERSION
${
PROJECT
_VERSION
}
COMPATIBILITY
AnyNewer
Version
VERSION
${
SOURCE
_VERSION
}
COMPATIBILITY
Exact
Version
)
configure_package_config_file
(
...
...
@@ -56,6 +56,6 @@ install(
)
set
(
CPACK_GENERATOR
"TXZ"
)
set
(
CPACK_PACKAGE_VERSION
${
PROJECT
_VERSION
}
)
set
(
CPACK_PACKAGE_VERSION
"
${
SOURCE
_VERSION
}
"
)
include
(
CPack
)
This diff is collapsed.
Click to expand it.
VERSION
deleted
100644 → 0
+
0
−
1
View file @
04d248a7
0.2.0
\ No newline at end of file
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