1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2 index a0be580e..ba143851 100644
3 --- a/src/CMakeLists.txt
4 +++ b/src/CMakeLists.txt
5 @@ -219,6 +219,16 @@ if (GLFW_BUILD_X11)
6 if (NOT X11_Xshape_INCLUDE_PATH)
7 message(FATAL_ERROR "X Shape headers not found; install libxext development package")
10 + target_link_libraries(glfw PRIVATE ${X11_Xrandr_LIB}
21 if (UNIX AND NOT APPLE)