mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 04:02:31 +00:00
Explicitly link X11 libraries
This fixes broken library loading on NixOS.
This commit is contained in:
parent
37fc28bff6
commit
dc6a1c5408
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user