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

Add aliases for the public libraries #3516

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

Conversation

AnyOldName3
Copy link
Contributor

This makes things consistent between when glslang is installed and imported versus when it's included as nested CMake project. You can now use glslang::glslang in both cases instead of needing the non-namespaced version sometimes and the namespaced one other times.

Resolves one of the problems discussed in #3509

Note: Some downstream projects may be using system-installed glslang as glslang instead of glslang::glslang, but this is fragile and isn't actually supposed to work - when passing an un-namespaced library name to target_link_libraries, if it's not an existing CMake target, CMake won't emit an error, and will fall back to just adding an extra linker flag like -lglslang. If you've already got the right library directory enabled (which is likely if you're using the system package), then it'll look like it's working, but you won't get any of the extras like CMake automatically setting up the right transitive include directories.

This makes things consistent between when glslang is installed and imported versus when it's included as nested CMake project.
You can now use `glslang::glslang` in both cases instead of needing the non-namespaced version sometimes and the namespaced one other times.

Resolves one of the problems discussed in KhronosGroup#3509
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

1 participant