Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
behavior_loader
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
Container registry
Model registry
Operate
Environments
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
behavior_loader
Commits
e1539a12
Commit
e1539a12
authored
5 years ago
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
Update use of (git) source version
parent
b1d3f834
No related branches found
No related tags found
No related merge requests found
Pipeline
#26758
failed
5 years ago
Stage: build
Stage: package
Stage: deploy
Changes
2
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+7
-5
7 additions, 5 deletions
CMakeLists.txt
VERSION
+0
-1
0 additions, 1 deletion
VERSION
with
7 additions
and
6 deletions
CMakeLists.txt
+
7
−
5
View file @
e1539a12
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
(
robofish-behavior_loader
VERSION
${
PROJECT_VERSION
}
LANGUAGES CXX
)
LANGUAGES CXX
)
include
(
GNUInstallDirs
)
...
...
@@ -32,8 +33,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
(
...
...
@@ -50,5 +51,6 @@ install(
)
set
(
CPACK_GENERATOR
"TXZ"
)
set
(
CPACK_PACKAGE_VERSION
"
${
SOURCE_VERSION
}
"
)
include
(
CPack
)
This diff is collapsed.
Click to expand it.
VERSION
deleted
100644 → 0
+
0
−
1
View file @
b1d3f834
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