Android: Building SDL 2.0.10 with CMake/Gradle

I tried turning off HIDAPI and then I got this:

CMake Error at SDL2-2.0.10/CMakeLists.txt:1840 (target_link_libraries):
Cannot specify link libraries for target “hidapi” which is not built by
this project.