Fix glfw 3 Linux dependencies (add Xcursor and -lrt)

This commit is contained in:
manuelk 2014-08-06 17:16:32 -07:00
parent cf8f5a97a8
commit 105919159d

View File

@ -120,7 +120,11 @@ else ()
message(FATAL_ERROR "xf86vmode library not found - required for GLFW")
endif()
list(APPEND GLFW_x11_LIBRARY "${X11_Xrandr_LIB}" "${X11_Xxf86vm_LIB}")
if(NOT X11_Xcursor_FOUND)
message(FATAL_ERROR "Xcursor library not found - required for GLFW")
endif()
list(APPEND GLFW_x11_LIBRARY "${X11_Xrandr_LIB}" "${X11_Xxf86vm_LIB}" "${X11_Xcursor_LIB}" -lrt)
find_library( GLFW_glfw_LIBRARY
NAMES