Commit f02ef2985d5caac5b2a3381ec42d92fe60436fa3

Ryan C. Gordon 2014-01-21T16:28:53

Fixed XF86 VidMode extension dynamic loading with CMake project.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index c2286b8..0dc549e 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -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)