-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG]: missing version type in release #3471
Comments
I could be wrong, but I thought this was supposed to be empty for release versions. The spacing is a problem, but I'm pretty sure it's supposed to be empty for releases. |
Thanks for looking into this issue. I observe the same behavior both when I install pybind11 using plain CMake but also in the version packaged for Arch Linux using |
I think it's because it's the correct behavior. We just haven't bothered to remove the extra space (though we probably should). |
I see. The simplest fix would be to report the version type as part of the version string, e.g., as |
That is what is done (though it is pulled from the version string, rather than the other way around). But for 2.8.1, there is no version type, since it's a final release. If you use master, it should be reported as dev1, which as far as I can tell, it is. |
Oh, I see what you mean, about the fix for the space. Okay, |
As far as I can see, the version is still reported as |
Sorry, I'm only half here, it seems. :) Yes, that sounds reasonable and should be easy. |
Would you like to make the change? |
Sure. |
Required prerequisites
Problem description
When consuming pybind11 by means of
find_package
, the following message is generated by CMake:Note the spurious space before the closing parenthesis. It seems that this is where the version type is supposed to appear:
pybind11/tools/pybind11Config.cmake.in
Line 231 in 270b11d
For some reason, however, the corresponding CMake variable is empty.
Reproducible example code
No response
The text was updated successfully, but these errors were encountered: