Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Michael Migliore
VTK
Commits
63194ebc
Commit
63194ebc
authored
2 years ago
by
Mathieu Westphal (Kitware)
Browse files
Options
Downloads
Patches
Plain Diff
Improve tags warning
parent
0f4e3602
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/VTKDetermineVersion.cmake
+8
-0
8 additions, 0 deletions
CMake/VTKDetermineVersion.cmake
with
8 additions
and
0 deletions
CMake/VTKDetermineVersion.cmake
+
8
−
0
View file @
63194ebc
...
...
@@ -63,10 +63,18 @@ function(determine_version source_dir git_command var_prefix)
NOT tmp_MINOR_VERSION STREQUAL
${
var_prefix
}
_MINOR_VERSION
)
message
(
WARNING
"Version from git (
${
tmp_VERSION
}
) disagrees with hard coded version (
${${
var_prefix
}
_VERSION
}
). Either update the git tags or version.txt."
)
if
(
NOT
"$ENV{CI}"
STREQUAL
""
)
message
(
WARNING
"Please update your fork tags, using this command: `git fetch origin --tags && git push gitlab --tags`."
)
endif
()
endif
()
elseif
(
NOT
"
${
tmp_VERSION
}
"
STREQUAL
"
${${
var_prefix
}
_VERSION
}
"
)
message
(
WARNING
"Version from git (
${
tmp_VERSION
}
) disagrees with hard coded version (
${${
var_prefix
}
_VERSION
}
). Either update the git tags or version.txt."
)
if
(
NOT
"$ENV{CI}"
STREQUAL
""
)
message
(
WARNING
"Please update your fork tags, using this command: `git fetch origin --tags && git push gitlab --tags`."
)
endif
()
endif
()
foreach
(
suffix VERSION VERSION_MAJOR VERSION_MINOR VERSION_PATCH
VERSION_PATCH_EXTRA VERSION_FULL VERSION_IS_RELEASE
)
...
...
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