The LINUX platform flag is only set with CMake >= 3.25:
explicitly set platform flags in the toolchain file
for CMake code, use APPLE (the canonical flag) instead of DARWIN
NOTE:
the makefiles still use DARWIN, I think they should switch to APPLE too.
the fact that we use ANDROID as a custom flag in CMake code is not great, as it's already a default flag, we should rename it or maybe revisit the whole "set CMAKE_SYSTEM_NAME to Linux on Android" thing.
The
LINUX
platform flag is only set with CMake >= 3.25:APPLE
(the canonical flag) instead ofDARWIN
NOTE:
DARWIN
, I think they should switch toAPPLE
too.ANDROID
as a custom flag in CMake code is not great, as it's already a default flag, we should rename it or maybe revisit the whole "setCMAKE_SYSTEM_NAME
to Linux on Android" thing.This change is