Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
1870787d
Commit
1870787d
authored
Aug 18, 2020
by
Julie Brossard
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REFAC] Switched tag and always options
parent
29e1c136
Pipeline
#5488
passed with stages
in 63 minutes and 33 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CMake/GetVersionFromGitTag.cmake
CMake/GetVersionFromGitTag.cmake
+2
-2
No files found.
CMake/GetVersionFromGitTag.cmake
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
)
...
...
Julie Brossard
@jbrossar
mentioned in commit
db6caa04
·
Aug 19, 2020
mentioned in commit
db6caa04
mentioned in commit db6caa0422aefe951d4f92a8d2d7a853930104d8
Toggle commit list
Julie Brossard
@jbrossar
mentioned in commit
89a9ca86
·
Aug 21, 2020
mentioned in commit
89a9ca86
mentioned in commit 89a9ca86c0ee585e80e1d980f9ffd11f0959e962
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment