Skip to content

cmake: fix linking in xcb and wayland libraries#274

Open
johnzupin wants to merge 1 commit into
SaschaWillems:masterfrom
johnzupin:zupin-update-cmake
Open

cmake: fix linking in xcb and wayland libraries#274
johnzupin wants to merge 1 commit into
SaschaWillems:masterfrom
johnzupin:zupin-update-cmake

Conversation

@johnzupin

Copy link
Copy Markdown

Trying to compile vulkanCapsViewer using CMake with the params -DX11=YES and/or -DWAYLAND=YES would fail because the libraries were not being linked in. This change updates the cmake to link the appropriate libraries. Also, the file had a mix of CRLF and LF line endings, this commit updates to only have CRLF endings to be consistent with the repo. Also removed whitespace and updated indentation to be consistent.

CMakeLists.txt

  • Run unix2dos on the file
  • Updated formatting - indenting is consistent
  • Remove an old comment
  • Update logic if X11 or WAYLAND is specified and link appropriately in target_link_library calls

@johnzupin johnzupin force-pushed the zupin-update-cmake branch from 3d0e7c5 to 82796f8 Compare June 4, 2026 22:17
@johnzupin

Copy link
Copy Markdown
Author

Made some formatting changes, hitting "Hide whitespace" might help with review.

Trying to compile vulkanCapsViewer using CMake with the params
-DX11=YES and/or -DWAYLAND=YES would fail because the libraries were
not being linked in. This change updates the cmake to link the
appropriate libraries. Also, the file had a mix of CRLF and LF line
endings, this commit updates to only have CRLF endings to be
consistent with the repo. Also removed whitespace and updated
indentation to be consistent.

CMakeLists.txt
- Updated formatting - indenting is consistent
- Remove an old comment
- Update logic if X11 or WAYLAND is specified and link appropriately
in target_link_library calls
@johnzupin johnzupin force-pushed the zupin-update-cmake branch from 82796f8 to 911fc18 Compare June 5, 2026 01:12
@SaschaWillems

Copy link
Copy Markdown
Owner

Thx for the PR. I'm not using CMake for my builds, so if this is okay from your side I can merge.

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.

2 participants