Function and symbol checks are only performed on X11/GLX.

master
Camilla Berglund ago%!(EXTRA string=14 years)
parent 0dac7131c8
commit a6981b7f83
  1. 6
      CMakeLists.txt

@ -13,9 +13,6 @@ set(GLFW_VERSION_FULL "${GLFW_VERSION}.${GLFW_VERSION_PATCH}${GLFW_VERSION_EXTRA
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ON)
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON)
include(CheckFunctionExists)
include(CheckSymbolExists)
find_package(OpenGL REQUIRED)
#--------------------------------------------------------------------
@ -55,6 +52,9 @@ if (UNIX AND NOT APPLE)
list(APPEND GLFW_LIBRARIES ${RT_LIBRARY})
endif(RT_LIBRARY)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(${GLFW_SOURCE_DIR}/CMake/CheckX11Extensions.cmake)
set(CMAKE_REQUIRED_LIBRARIES ${X11_X11_LIB} ${OPENGL_gl_LIBRARY})

Loading…
Cancel
Save