about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/glfw/x11.patch
blob: 5cadf53bfe7085770ca03113f75a850174d878a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a0be580e..ba143851 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -219,6 +219,13 @@ if (GLFW_BUILD_X11)
     if (NOT X11_Xshape_INCLUDE_PATH)
         message(FATAL_ERROR "X Shape headers not found; install libxext development package")
     endif()
+
+    target_link_libraries(glfw PRIVATE ${X11_Xrandr_LIB}
+                                       ${X11_Xinerama_LIB}
+                                       ${X11_Xkb_LIB}
+                                       ${X11_Xcursor_LIB}
+                                       ${X11_Xi_LIB}
+                                       ${X11_Xshape_LIB})
 endif()
 
 if (UNIX AND NOT APPLE)