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

use add_custom_command for generating protocols #6104

Merged
merged 1 commit into from
May 16, 2024

Conversation

cnt0
Copy link
Contributor

@cnt0 cnt0 commented May 16, 2024

(this is v2 of this PR, I made a new one to keep git history clean)

This fixes an issue with build error in case of e.g.

$ rm protocols/*.h
$ cmake --build build

The workaround was to

$ touch CMakeLists.txt

With this PR, protocol files are properly regenerated with no extra efforts.

Also, resolve hyprwayland-scanner dependency via cmake instead of pkg-config.

fufexan
fufexan previously approved these changes May 16, 2024
Copy link
Member

@fufexan fufexan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

This fixes an issue with build error in case of e.g.

$ rm protocols/*.{c,h}
$ cmake --build build

The workaround was to touch CMakeLists.txt. With this PR, protocol files
are properly regenerated with no extra efforts.

Also, resolve hyprwayland-scanner dependency via cmake instead
ofpkg-config.
@fufexan fufexan merged commit a66cfe0 into hyprwm:main May 16, 2024
10 checks passed
@cnt0 cnt0 deleted the cmake-proper-rebuild-2 branch May 17, 2024 04:26
zjeffer added a commit to zjeffer/Hyprland that referenced this pull request May 21, 2024
zjeffer added a commit to zjeffer/Hyprland that referenced this pull request May 22, 2024
The-Briel-Deal pushed a commit to The-Briel-Deal/Hyprland that referenced this pull request May 25, 2024
fufexan pushed a commit that referenced this pull request May 25, 2024
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.

None yet

2 participants