Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use pkg-config to check for XInput2
  • Loading branch information
magcius committed Jul 21, 2013
1 parent fe2fe8b commit 3239e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Expand Up @@ -430,12 +430,13 @@ if(NOT ANDROID)
else()
add_definitions(-DHAVE_XRANDR=0)
endif(XRANDR_FOUND)
include(FindX11XInput2)
if(X11_Xinput2_FOUND)

pkg_check_modules(XINPUT2 xi>=1.5.0)
if(XINPUT2_FOUND)
add_definitions(-DHAVE_X11_XINPUT2=1)
else()
add_definitions(-DHAVE_X11_XINPUT2=0)
endif(X11_Xinput2_FOUND)
endif(XINPUT2_FOUND)
endif()
if(ENCODE_FRAMEDUMPS)
check_libav()
Expand Down
30 changes: 0 additions & 30 deletions CMakeTests/FindX11XInput2.cmake

This file was deleted.

0 comments on commit 3239e49

Please sign in to comment.