From 1b00c1f9df05a423c7a33974cc8ed3113381e228 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 23 Aug 2024 18:40:28 +0800 Subject: [PATCH 1/2] src/CMakeLists: fix OpenGL linking --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/CMakeLists.txt src/CMakeLists.txt index 4bc0e5d7..f1944608 100644 --- src/CMakeLists.txt +++ src/CMakeLists.txt @@ -647,7 +647,7 @@ ELSE("${WT_WRASTERIMAGE_IMPLEMENTATION}" STREQUAL "GraphicsMagick") ENDIF("${WT_WRASTERIMAGE_IMPLEMENTATION}" STREQUAL "GraphicsMagick") if(WT_USE_OPENGL) - target_link_libraries(wt PRIVATE OpenGL::GL GLEW::GLEW) + target_link_libraries(wt PRIVATE OpenGL::GL GLEW::GLEW X11) else() MESSAGE("** Disabling server-side opengl rendering for WGLWidget: requires gl, glew and WRasterImage (GraphicsMagick or Direct2D).") endif()