Merge pull request #886 from alarixnia/dlopen

gtk: Use CMAKE_DL_LIBS
This commit is contained in:
bearoso 2023-11-19 17:57:15 -06:00 committed by GitHub
commit 97291767b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -64,9 +64,8 @@ pkg_check_modules(XRANDR REQUIRED xrandr)
find_library(X11 X11 REQUIRED) find_library(X11 X11 REQUIRED)
find_library(XEXT Xext REQUIRED) find_library(XEXT Xext REQUIRED)
find_library(DL dl REQUIRED)
list(APPEND ARGS ${SDL2_CFLAGS} ${GTK_CFLAGS} ${XRANDR_CFLAGS}) list(APPEND ARGS ${SDL2_CFLAGS} ${GTK_CFLAGS} ${XRANDR_CFLAGS})
list(APPEND LIBS ${X11} ${XEXT} ${DL} ${SDL2_LIBRARIES} ${GTK_LIBRARIES} ${XRANDR_LIBRARIES}) list(APPEND LIBS ${X11} ${XEXT} ${CMAKE_DL_LIBS} ${SDL2_LIBRARIES} ${GTK_LIBRARIES} ${XRANDR_LIBRARIES})
list(APPEND SOURCES src/gtk_display_driver_opengl.cpp list(APPEND SOURCES src/gtk_display_driver_opengl.cpp
../common/video/glx_context.cpp ../common/video/glx_context.cpp