From 323d4a484dfe44cb7f9216be50d111c931dc257f Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 12 May 2015 00:59:42 +0200 Subject: [PATCH] Simplified libdl logic. --- CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 752652d1..d85b2569 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -400,14 +400,7 @@ if (_GLFW_GLX) NOT _GLFW_HAS_GLXGETPROCADDRESSEXT) message(WARNING "No glXGetProcAddressXXX variant found") - # Check for dlopen support as a fallback - - set(CMAKE_REQUIRED_LIBRARIES "${CMAKE_DL_LIBS}") - check_function_exists(dlopen _GLFW_HAS_DLOPEN) - if (NOT _GLFW_HAS_DLOPEN) - message(FATAL_ERROR "No entry point retrieval mechanism found") - endif() - + set(_GLFW_HAS_DLOPEN 1) if (CMAKE_DL_LIBS) list(APPEND glfw_LIBRARIES "${CMAKE_DL_LIBS}") list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}")