From ad8569532a2341fec513e76c3aacbfd46c5d8f9f Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 13 Jul 2025 23:12:47 -0500 Subject: [PATCH] Ensure the mesa-glu::mesa-glu target is used on Linux instead of OpenGL::GLU (cherry picked from commit b0a8c6576dc29f46f3cea26fbd06966b713fb4e7) --- scwx-qt/scwx-qt.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scwx-qt/scwx-qt.cmake b/scwx-qt/scwx-qt.cmake index d013bfb8..194601e9 100644 --- a/scwx-qt/scwx-qt.cmake +++ b/scwx-qt/scwx-qt.cmake @@ -734,6 +734,13 @@ if (LINUX) target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::WaylandClient) endif() +if (LINUX) + find_package(mesa-glu REQUIRED) + target_link_libraries(scwx-qt PUBLIC mesa-glu::mesa-glu) +else() + target_link_libraries(scwx-qt PUBLIC OpenGL::GLU) +endif() + target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::OpenGLWidgets Qt${QT_VERSION_MAJOR}::Multimedia @@ -753,7 +760,6 @@ target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets glad_gl_core_33 glm::glm imgui - OpenGL::GLU qt6ct-common qt6ct-widgets SQLite::SQLite3