From a6981b7f835bdc54642c72f58064e52c83b9714e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 28 Jan 2012 00:01:05 +0100 Subject: [PATCH] Function and symbol checks are only performed on X11/GLX. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09191191..4d8f5ebd 100644 --- a/CMakeLists.txt +++ b/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})