Files
Chris Von Bargen e8f2b98f4c Fix link failure on macOS caused by AGL framework injection in Qt (#9139)
* Fix Qt 6.5.8 link failure on macOS due to removed AGL framework

Qt 6.5.8 injects the AGL (Apple Graphics Layer) framework into the
WrapOpenGL::WrapOpenGL imported target's INTERFACE_LINK_LIBRARIES. AGL
was removed from macOS 14+ SDKs, causing a link error when building
MolDraw2DQt on modern macOS:

  ld: framework not found AGL

This workaround filters AGL out of WrapOpenGL::WrapOpenGL's link
libraries after find_package(Qt6) populates them. The guard conditions
(APPLE and TARGET WrapOpenGL::WrapOpenGL) make it a no-op on other
platforms and Qt versions that do not create that target.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Broaden AGL workaround comment to not pin Qt 6.5.8 specifically

The issue may affect other Qt versions, not just 6.5.8.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 06:12:29 +01:00
..
2022-02-18 16:30:21 +01:00
2022-07-01 06:36:26 +02:00