Skip to content

Commit

Permalink
Fixed XF86 VidMode extension dynamic loading with CMake project.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 21, 2014
1 parent b131e74 commit f02ef29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/sdlchecks.cmake
Expand Up @@ -491,11 +491,11 @@ macro(CheckX11)
endif(VIDEO_X11_XSHAPE AND HAVE_XSHAPE_H)

if(VIDEO_X11_XVM AND HAVE_XF86VM_H)
if(HAVE_X11_SHARED AND XF86VMODE_LIB)
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XF86VMODE_LIB_SONAME}\"")
else(HAVE_X11_SHARED AND XF86VMODE_LIB)
list(APPEND EXTRA_LIBS ${XF86VMODE_LIB})
endif(HAVE_X11_SHARED AND XF86VMODE_LIB)
if(HAVE_X11_SHARED AND XXF86VM_LIB)
set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XXF86VM_LIB_SONAME}\"")
else(HAVE_X11_SHARED AND XXF86VM_LIB)
list(APPEND EXTRA_LIBS ${XXF86VM_LIB})
endif(HAVE_X11_SHARED AND XXF86VM_LIB)
set(SDL_VIDEO_DRIVER_X11_XVIDMODE 1)
set(HAVE_VIDEO_X11_XVM TRUE)
endif(VIDEO_X11_XVM AND HAVE_XF86VM_H)
Expand Down

0 comments on commit f02ef29

Please sign in to comment.