Added rudimentary detection of librt.

This commit is contained in:
Camilla Berglund 2011-11-03 02:43:10 +01:00
parent d929752a42
commit a559b5da98
1 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,11 @@ if (UNIX AND NOT APPLE)
NOT _GLFW_HAS_GLXGETPROCADDRESSARB AND
NOT _GLFW_HAS_GLXGETPROCADDRESSEXT)
find_library(LIBRT rt)
if (LIBRT)
list(APPEND GLFW_LIBRARIES ${LIBRT})
endif(LIBRT)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(_GLFW_USE_LINUX_JOYSTICKS 1)
endif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")