Android / Visual Studio: The processor type should be deduced from the generator architecture
When generating Visual Studio project files, the target architecture has to be specified twice: On the one hand, the -A
option needs to be used for the Visual Studio generator, but the Android layer always defaults to armeabi-v7a, even if -A ARM64
or -A x86
is passed to cmake. You need to specify -DCMAKE_ANDROID_ARCH_ABI
as well to get a consistent setup.