Fixed XF86 VidMode extension dynamic loading with CMake project.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 21 Jan 2014 16:28:53 -0500
changeset 8120c858be546e5a
parent 8119 df0bf33be2ca
child 8121 1b62b081a83b
Fixed XF86 VidMode extension dynamic loading with CMake project.
cmake/sdlchecks.cmake
     1.1 --- a/cmake/sdlchecks.cmake	Tue Jan 21 18:20:12 2014 -0300
     1.2 +++ b/cmake/sdlchecks.cmake	Tue Jan 21 16:28:53 2014 -0500
     1.3 @@ -491,11 +491,11 @@
     1.4        endif(VIDEO_X11_XSHAPE AND HAVE_XSHAPE_H)
     1.5  
     1.6        if(VIDEO_X11_XVM AND HAVE_XF86VM_H)
     1.7 -        if(HAVE_X11_SHARED AND XF86VMODE_LIB)
     1.8 -          set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XF86VMODE_LIB_SONAME}\"")
     1.9 -        else(HAVE_X11_SHARED AND XF86VMODE_LIB)
    1.10 -          list(APPEND EXTRA_LIBS ${XF86VMODE_LIB})
    1.11 -        endif(HAVE_X11_SHARED AND XF86VMODE_LIB)
    1.12 +        if(HAVE_X11_SHARED AND XXF86VM_LIB)
    1.13 +          set(SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "\"${XXF86VM_LIB_SONAME}\"")
    1.14 +        else(HAVE_X11_SHARED AND XXF86VM_LIB)
    1.15 +          list(APPEND EXTRA_LIBS ${XXF86VM_LIB})
    1.16 +        endif(HAVE_X11_SHARED AND XXF86VM_LIB)
    1.17          set(SDL_VIDEO_DRIVER_X11_XVIDMODE 1)
    1.18          set(HAVE_VIDEO_X11_XVM TRUE)
    1.19        endif(VIDEO_X11_XVM AND HAVE_XF86VM_H)