We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3098 - CMake project never enables xinput support on Windows
Summary: CMake project never enables xinput support on Windows
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All Windows (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-21 02:58 UTC by Alex Szpakowski
Modified: 2015-08-28 22:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Szpakowski 2015-08-21 02:58:43 UTC
When using the CMake project to build SDL on Windows, it is never able to find xinput.h and so prevents the xinput gamepad support from being compiled.

The cmake configuration gives this output:

-- Looking for xinput.h
-- Looking for xinput.h - not found

The rest of the windows/directx-related headers are found successfully.

xinput.h definitely exists in the expected locations on my system - the Visual Studio project seems to find it fine and builds SDL's xinput code successfully. (My Xbox 360 gamepad is registered as an xinput gamecontroller when using the VS project, but isn't when using CMake.)

Tested using VS2013, running Windows 8.1.
Comment 1 Alex Szpakowski 2015-08-28 22:06:08 UTC
This commit should fix it: https://hg.libsdl.org/SDL/rev/3d08cb641cd5