cmake: Fix header detection with CheckUSBHID

Make use of check_include_files to be able to also include
stdint.h when checking for the headers. Fixes detection of
usbhid.h on OpenBSD.

/usr/include/usbhid.h:40:2: error: unknown type name 'uint32_t'
   40 |         uint32_t _usage_page;
      |         ^
This commit is contained in:
Brad Smith
2026-01-17 00:49:44 -05:00
committed by Sam Lantinga
parent 01d8e37a16
commit 410a35fbee
2 changed files with 5 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ endif()
include(CheckLibraryExists)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckLanguage)
include(CheckSymbolExists)
include(CheckCSourceCompiles)