diff options
author | Brad King <brad.king@kitware.com> | 2022-09-19 14:21:57 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-19 14:22:15 (GMT) |
commit | 6949d0195d9d87cd92ce7da73cfde5d56bc2decd (patch) | |
tree | dce3056e69675baa66679cd534d9b1c9d0f2181a /Modules | |
parent | f485e2c65b74d943d224ff308f3b553638c89de3 (diff) | |
parent | 1c86e397fe20b89521842617258db33079e34d1f (diff) | |
download | CMake-6949d0195d9d87cd92ce7da73cfde5d56bc2decd.zip CMake-6949d0195d9d87cd92ce7da73cfde5d56bc2decd.tar.gz CMake-6949d0195d9d87cd92ce7da73cfde5d56bc2decd.tar.bz2 |
Merge topic 'android-clang-no-ndk-version'
1c86e397fe Android/Clang: Tolerate undefined CMAKE_ANDROID_NDK_VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7689
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/Clang.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang.cmake b/Modules/Compiler/Clang.cmake index 257402a..4f9af37 100644 --- a/Modules/Compiler/Clang.cmake +++ b/Modules/Compiler/Clang.cmake @@ -80,7 +80,7 @@ else() set(CMAKE_${lang}_COMPILE_OPTIONS_IPO "-flto") endif() - if(ANDROID AND NOT CMAKE_ANDROID_NDK_VERSION VERSION_GREATER_EQUAL "22") + if(ANDROID AND CMAKE_ANDROID_NDK_VERSION VERSION_LESS "22") # https://github.com/android-ndk/ndk/issues/242 set(CMAKE_${lang}_LINK_OPTIONS_IPO "-fuse-ld=gold") endif() |