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 linking of GLEW library #135

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

Conversation

danyspin97
Copy link

@danyspin97 danyspin97 commented Jun 5, 2020

FindGLEW.cmake Module silently tries to include glew-config.cmake.
If it succeeds, then it stop and return to the caller.
However, glew-config.cmake only sets GLEW::GLEW, resulting in
missing glew shared library at link time.

I've also fixed the inclusion of its header but I am not 100% sure it is correct (cmake docs don't talk about imported target in include_directories).

Credits to Eduardo Suarez-Santana for discovering the build error and providing the fix.
https://gitlab.exherbo.org/DanySpin97/danyspin97-exheres/-/issues/2

FindGLEW.cmake Module silently tries to include glew-config.cmake.
If it succeeds, then it stop and return to the caller.
However, glew-config.cmake only sets GLEW::GLEW, resulting in
missing glew shared library at link time.

Credits to Eduardo Suarez-Santana for discovering the build error and providing the fix.
https://gitlab.exherbo.org/DanySpin97/danyspin97-exheres/-/issues/2
Shawn8901 pushed a commit to Shawn8901/nixpkgs that referenced this pull request Feb 17, 2023
FindGLEW.cmake Module silently tries to include glew-config.cmake.
If it succeeds, then it stop and return to the caller.
However, glew-config.cmake only sets GLEW::GLEW, resulting in
missing glew shared library at link time.

References:
* naelstrof/slop#135
* https://gitlab.exherbo.org/DanySpin97/danyspin97-exheres/-/issues/2
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