mirror of
https://github.com/glfw/glfw.git
synced 2024-12-01 14:27:13 +00:00
Function and symbol checks are only performed on X11/GLX.
This commit is contained in:
parent
0dac7131c8
commit
a6981b7f83
@ -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_EXAMPLES "Build the GLFW example programs" ON)
|
||||||
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON)
|
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON)
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
|
||||||
include(CheckSymbolExists)
|
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
@ -55,6 +52,9 @@ if (UNIX AND NOT APPLE)
|
|||||||
list(APPEND GLFW_LIBRARIES ${RT_LIBRARY})
|
list(APPEND GLFW_LIBRARIES ${RT_LIBRARY})
|
||||||
endif(RT_LIBRARY)
|
endif(RT_LIBRARY)
|
||||||
|
|
||||||
|
include(CheckFunctionExists)
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
|
||||||
include(${GLFW_SOURCE_DIR}/CMake/CheckX11Extensions.cmake)
|
include(${GLFW_SOURCE_DIR}/CMake/CheckX11Extensions.cmake)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${X11_X11_LIB} ${OPENGL_gl_LIBRARY})
|
set(CMAKE_REQUIRED_LIBRARIES ${X11_X11_LIB} ${OPENGL_gl_LIBRARY})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user