mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed XF86 VidMode extension dynamic loading with CMake project.
This commit is contained in:
parent
b131e74be4
commit
f02ef2985d
@ -491,11 +491,11 @@ macro(CheckX11)
|
|||||||
endif(VIDEO_X11_XSHAPE AND HAVE_XSHAPE_H)
|
endif(VIDEO_X11_XSHAPE AND HAVE_XSHAPE_H)
|
||||||
|
|
||||||
if(VIDEO_X11_XVM AND HAVE_XF86VM_H)
|
if(VIDEO_X11_XVM AND HAVE_XF86VM_H)
|
||||||
if(HAVE_X11_SHARED AND XF86VMODE_LIB)
|
if(HAVE_X11_SHARED AND XXF86VM_LIB)
|
||||||
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XF86VMODE_LIB_SONAME}\"")
|
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XXF86VM_LIB_SONAME}\"")
|
||||||
else(HAVE_X11_SHARED AND XF86VMODE_LIB)
|
else(HAVE_X11_SHARED AND XXF86VM_LIB)
|
||||||
list(APPEND EXTRA_LIBS ${XF86VMODE_LIB})
|
list(APPEND EXTRA_LIBS ${XXF86VM_LIB})
|
||||||
endif(HAVE_X11_SHARED AND XF86VMODE_LIB)
|
endif(HAVE_X11_SHARED AND XXF86VM_LIB)
|
||||||
set(SDL_VIDEO_DRIVER_X11_XVIDMODE 1)
|
set(SDL_VIDEO_DRIVER_X11_XVIDMODE 1)
|
||||||
set(HAVE_VIDEO_X11_XVM TRUE)
|
set(HAVE_VIDEO_X11_XVM TRUE)
|
||||||
endif(VIDEO_X11_XVM AND HAVE_XF86VM_H)
|
endif(VIDEO_X11_XVM AND HAVE_XF86VM_H)
|
||||||
|
Loading…
Reference in New Issue
Block a user