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 EGL and epoxy linking for external projects #937

Merged

Conversation

christian-rauch
Copy link
Collaborator

The INTERFACE_LINK_LIBRARIES for pango_opengl contains the CMake targets OpenGL::EGL and epoxy::epoxy, which are interpreted as libraries in external projects, unless their packages are imported via find_package or find_dependency. For the OpenGL targets, where the "Find*" macros are available via the original package, this can be fixed by adding find_dependency to the PangolinConfig.cmake. However, for epoxy such "Find*" package is not easily available and would need to be manually added by each external project. Hence, we revert back to the old-style CMake includes and libraries, such that the INTERFACE_LINK_LIBRARIES will contain the path to the shared object for epoxy.

Fixes #936.

@christian-rauch christian-rauch merged commit 13e4a18 into stevenlovegrove:master Jun 7, 2024
9 checks passed
@christian-rauch christian-rauch deleted the fix_egl_targets branch June 7, 2024 15:39
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.

CMake build error 'epoxy::epoxy' not found
2 participants