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

CMake: Fix include path discovery when using FindVulkan.cmake #136

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

zeux
Copy link
Owner

@zeux zeux commented Aug 4, 2023

volk does not need libvulkan.so dependency, and in fact adding it is dangerous due to possible symbol conflicts and unnecessary as the point of using volk is to avoid direct dependencies on Vulkan loader.

When FindVulkan.cmake discovered a Vulkan installation, it would erroneously depend on Vulkan::Vulkan which would add libvulkan.so dependency.

Instead, rework all of this to just get the include path from the module or compute it from other variables. This setup is cleaner and it guarantees that we aren't going to get any rogue flags into the build.

Fixes #134.

volk does not need libvulkan.so dependency, and in fact adding it is
dangerous due to possible symbol conflicts and unnecessary as the point
of using volk is to avoid direct dependencies on Vulkan loader.

When FindVulkan.cmake discovered a Vulkan installation, it would
erroneously depend on Vulkan::Vulkan which would add libvulkan.so
dependency.

Instead, rework all of this to just get the include path from the module
or compute it from other variables. This setup is cleaner and it
guarantees that we aren't going to get any rogue flags into the build.
@zeux zeux merged commit c1fc502 into master Aug 4, 2023
6 checks passed
@zeux zeux deleted the cmake-inconly branch August 4, 2023 22:46
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.

mold linker symbol mismatch warning
1 participant