mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
Android: Revert setting LINUX variable on Android target systems
Since commit 62cd3904bf (variable: Set LINUX variable on Linux target
systems, 2022-08-10, v3.25.0-rc1~320^2), the `Platform/Android` module
inherits the `LINUX` variable setting from `Platform/Linux`. While
Android may use a Linux kernel, `CMAKE_SYSTEM_NAME` is not `Linux`, and
the platform does not follow conventions of most Linux distributions.
Fixes: #24196
This commit is contained in:
@@ -5,6 +5,7 @@ if(CMAKE_ANDROID_NDK)
|
||||
endif()
|
||||
|
||||
include(Platform/Linux)
|
||||
unset(LINUX)
|
||||
|
||||
set(ANDROID 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user