Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Vincent Delbar
otb
Commits
1870787d
Commit
1870787d
authored
4 years ago
by
Julie Brossard
Browse files
Options
Downloads
Patches
Plain Diff
[REFAC] Switched tag and always options
parent
29e1c136
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/GetVersionFromGitTag.cmake
+2
-2
2 additions, 2 deletions
CMake/GetVersionFromGitTag.cmake
with
2 additions
and
2 deletions
CMake/GetVersionFromGitTag.cmake
+
2
−
2
View file @
1870787d
...
...
@@ -43,14 +43,14 @@ function(get_version root_repo_dir project_name project_version_string project_v
endif
()
# Get last tag from git
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --abbrev=0 --
tag
s
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --abbrev=0 --
alway
s
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE
${
PROJECT_NAME
}
_VERSION_STRING
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message
(
STATUS
${${
PROJECT_NAME
}
_VERSION_STRING
}
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --
tag
s
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
describe --
alway
s
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE
${
PROJECT_NAME
}
_VERSION_STRING_2
OUTPUT_STRIP_TRAILING_WHITESPACE
)
...
...
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