Skip to content
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

Fix #104: keychain.h now contains a correct define for keychain version. #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akallabeth
Copy link
Contributor

keychain.h is now a configure file where the variable gets replaced with a proper value.

Copy link
Contributor

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of having qtkeychain.h being auto-generated. This means working with the project would be harder as jumping to symbol and stuff would jump to that generated file and not the original.

Also, the CMakeLists.txt contains

set(QTKEYCHAIN_VERSION 0.8.90)

Which, appart from being also outdated, is also not a valid C++ token, so that means you cannot use it to detect the version at compile time.

Maybe it would be best to add a comment saying "keep in sync with that other file" would be enough, so the one increasing the version would not forget to update the two files. It's not like the version is increased that often anyways.

@dfaure-kdab
Copy link
Contributor

dfaure-kdab commented May 24, 2024

How about moving the version number to a separate generated header, included by keychain.h?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants