1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Simplified libdl logic.

This commit is contained in:
Camilla Berglund 2015-05-12 00:59:42 +02:00
parent 6af25fb423
commit 323d4a484d

View File

@ -400,14 +400,7 @@ if (_GLFW_GLX)
NOT _GLFW_HAS_GLXGETPROCADDRESSEXT) NOT _GLFW_HAS_GLXGETPROCADDRESSEXT)
message(WARNING "No glXGetProcAddressXXX variant found") message(WARNING "No glXGetProcAddressXXX variant found")
# Check for dlopen support as a fallback set(_GLFW_HAS_DLOPEN 1)
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()
if (CMAKE_DL_LIBS) if (CMAKE_DL_LIBS)
list(APPEND glfw_LIBRARIES "${CMAKE_DL_LIBS}") list(APPEND glfw_LIBRARIES "${CMAKE_DL_LIBS}")
list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}") list(APPEND glfw_PKG_LIBS "-l${CMAKE_DL_LIBS}")