diff --git a/CMakeLists.txt b/CMakeLists.txt index fad2f423..5ad266f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,11 @@ if (UNIX AND NOT APPLE) list(APPEND GLFW_INCLUDE_DIR ${OPENGL_INCLUDE_DIR}) list(APPEND GLFW_LIBRARIES ${OPENGL_gl_LIBRARY}) + find_library(MATH_LIBRARY m) + if (MATH_LIBRARY) + list(APPEND GLFW_LIBRARIES ${MATH_LIBRARY}) + endif(MATH_LIBRARY) + include(${CMAKE_CURRENT_SOURCE_DIR}/CMake/CheckX11Extensions.cmake) # Check for XRandR (modern resolution switching extension) diff --git a/readme.html b/readme.html index ede37bdc..8b5314d1 100644 --- a/readme.html +++ b/readme.html @@ -313,6 +313,7 @@ version of GLFW.
GLX_EXT_swap_control
extension as an alternative to GLX_SGI_swap_control
CLOCK_MONOTONIC
time source as the preferred methodglXCreateContextAttribsARB
with an unavailable OpenGL version caused the application to terminate with a BadMatch
Xlib error