diff options
author | Brad King <brad.king@kitware.com> | 2023-06-06 19:36:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-06-07 11:02:20 (GMT) |
commit | 1373373823ccaf8378a19a95685337061d79d5b1 (patch) | |
tree | 882877cbe65068d3df0eadbd75a74fdd52a0d87c /Modules/Platform/Android-Initialize.cmake | |
parent | 1d916bf3d2dad26682ed73c6cbed88babe28af7b (diff) | |
download | CMake-1373373823ccaf8378a19a95685337061d79d5b1.zip CMake-1373373823ccaf8378a19a95685337061d79d5b1.tar.gz CMake-1373373823ccaf8378a19a95685337061d79d5b1.tar.bz2 |
enable_language: Establish target platform identification variables earlier
Set target platform identification variables like `APPLE` and `LINUX`
as soon as the target system is identified. This makes them available
during toolchain and binutils selection.
Fixes: #23333
Diffstat (limited to 'Modules/Platform/Android-Initialize.cmake')
-rw-r--r-- | Modules/Platform/Android-Initialize.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Initialize.cmake b/Modules/Platform/Android-Initialize.cmake index 63bc949..2a2f6e2 100644 --- a/Modules/Platform/Android-Initialize.cmake +++ b/Modules/Platform/Android-Initialize.cmake @@ -23,6 +23,11 @@ if(CMAKE_SYSTEM_VERSION EQUAL 1) return() endif() +include(Platform/Linux-Initialize) +unset(LINUX) + +set(ANDROID 1) + set(CMAKE_BUILD_TYPE_INIT "RelWithDebInfo") if(CMAKE_ANDROID_NDK_TOOLCHAIN_UNIFIED) |