Skip to content

Commit

Permalink
cmake: add hidapi to 'SDL_SUBSYSTEMS'
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Nov 8, 2021
1 parent 1739ef3 commit 2636d83
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ endif()
set(LONGESTOPTIONNAME 0) # set_option and friends will change this.

set(SDL_SUBSYSTEMS
Atomic Audio Video Render Events Joystick Haptic Power Threads Timers
Atomic Audio Video Render Events Joystick Haptic Hidapi Power Threads Timers
File Loadso CPUinfo Filesystem Dlopen Sensor Locale)
foreach(_SUB ${SDL_SUBSYSTEMS})
string(TOUPPER ${_SUB} _OPT)
Expand Down Expand Up @@ -1116,8 +1116,7 @@ if(ANDROID)
#if defined(__ARM_ARCH) && __ARM_ARCH < 7
#error Vulkan doesn't work on this configuration
#endif
int main()
{
int main(void) {
return 0;
}
" VULKAN_PASSED_ANDROID_CHECKS)
Expand Down Expand Up @@ -1928,8 +1927,7 @@ elseif(APPLE)
#if (!TARGET_CPU_X86_64 && !TARGET_CPU_ARM64)
#error Metal doesn't work on this configuration
#endif
int main()
{
int main(void) {
return 0;
}
" HAVE_FRAMEWORK_METAL)
Expand Down

0 comments on commit 2636d83

Please sign in to comment.