-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P4est version is set to 0.0.0 if built from tarball via CMake #325
Comments
The issues applies to libsc as well. |
Thank you for your report! I created a draft PR that creates a file similar to your
I fixed this in the referenced PR.
My PR still requires to call some arbitrary build command before this workflow because otherwise the version file is not created. This was also the case for the workflow in t8code when I tested it. The standard method for adding a dependency (using |
Thank you very much for addressing this issue, @tim-griesbach !
I think you have to include |
Thanks, in
but it results in the error:
Moreover, the code that you linked looks to me like t8code should have the same issue as my PR, i.e. in a fresh repository, that was never used to compile code, calling |
I can verify this behavior. @Davknapp What is your take on this? |
Description
When p4est sources are packaged via a CMake tarball the version is set to 0.0.0.
The result in
include/p4est_config.h
readsTo Reproduce
Configure p4est with CMake and then create a tarball distribution via
Then extract the tarball again and configure it via CMake:
The naming of the tarball is also odd:
p4est-.tar.gz
.Additional information
This is related to this issue: DLR-AMR/t8code#1294
In t8code we had the same issue. The problem is that the tarball is not a Git repo anymore
and
git-gen version
is not available. Thus, the version info has to be retrieved another way.t8code writes out a
version.txt
file and reads it in case of a tarball distribution.See https://github.com/DLR-AMR/t8code/blob/main/cmake/GitProjectVersion.cmake
and https://github.com/DLR-AMR/t8code/blob/f8b7becc597975de218d40fb7804ec9723164e04/cmake/CPackConfig.cmake#L24.
If you find a more elegant solution, I'm all ears!
The text was updated successfully, but these errors were encountered: