mirror of
https://github.com/glfw/glfw.git
synced 2024-11-12 17:51:48 +00:00
Simplified libdl logic.
This commit is contained in:
parent
6af25fb423
commit
323d4a484d
@ -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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user