Skip to content

Android: Populate CMAKE_HOST_SYSTEM_VERSION on native builds

Follow up !3917 (merged).

This is to make it consistent with cross-compiling, which CMAKE_SYSTEM_VERSION is set to the Android API level.

By default, CMAKE_SYSTEM_VERSION does not follow CMAKE_HOST_SYSTEM_VERSION because Termux targets API level 24 regardless of the host's API level.

I'm not familiar with the CMake codebase, so I apologize if this is not correct.

Edited by Brad King

Merge request reports