mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Added rudimentary detection of librt.
This commit is contained in:
parent
d929752a42
commit
a559b5da98
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user