@ -94,6 +94,10 @@ if (UNIX AND NOT APPLE AND NOT CYGWIN)
NOT _GLFW_HAS_GLXGETPROCADDRESSARB AND
NOT _GLFW_HAS_GLXGETPROCADDRESSEXT)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(_GLFW_USE_LINUX_JOYSTICKS 1)
endif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
# Select platform specific code
add_subdirectory(src/x11)
endif(UNIX AND NOT APPLE AND NOT CYGWIN)
@ -12,6 +12,9 @@
/* Define this to 1 if glXGetProcAddressEXT is available */
#cmakedefine _GLFW_HAS_GLXGETPROCADDRESSEXT 1
/* Define this to 1 if the Linux joystick API is available */
#cmakedefine _GLFW_USE_LINUX_JOYSTICKS 1
/* Define this to 1 to not load gdi32.dll dynamically */
#cmakedefine _GLFW_NO_DLOAD_GDI32 1
/* Define this to 1 to not load winmm.dll dynamically */