Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix tarball versioning
This PR addresses among others the issue of tarball naming in the CMake build system. Previously, an uninitialized variable,
git_version
, was used for the version in the package name, leading to incorrect tarball names.Moreover, this PR introduces a new CMake target
GenerateVersionFile
to generate the file.tarball-version
analogous to the file used in the Autotools-based creation of a tarball in p4est.Then the file
.tarball-version
is used by the scriptgit-version-gen
to get the version in the case.git
is not present, as it is the case for creating a tarball. This ensures a correctly populatedp4est_config.h
after configuring in a tarball directory.Currently, the CMake target
GenerateVersionFile
is only build if some arbitrary build command is executed. In particular calling onlymake package_source
does not suffice to trigger.tarball-version
's creation.