diff options
author | Haibo Huang <hhng2046@gmail.com> | 2021-03-30 04:00:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-03-30 14:06:02 (GMT) |
commit | 61e6fc26bc46b219b36533accb70002d5e2fb05a (patch) | |
tree | 9dae69f2e294f677bfa7955f3b7ef69a34084927 /Modules/CMakeFindBinUtils.cmake | |
parent | c0092247fe380ec9df065c4fbdafcd610ef09ddc (diff) | |
download | CMake-61e6fc26bc46b219b36533accb70002d5e2fb05a.zip CMake-61e6fc26bc46b219b36533accb70002d5e2fb05a.tar.gz CMake-61e6fc26bc46b219b36533accb70002d5e2fb05a.tar.bz2 |
Android: Fix search for binutils
Set `CMAKE_SYSTEM_PROGRAM_PATH` in `Platform/Android-Initialize` instead
of `Platform/Android` so it can be used in `CMakeFindBinUtils`.
Also add the names `llvm-strip` and `llvm-ranlib` for the corresponding
tools.
Diffstat (limited to 'Modules/CMakeFindBinUtils.cmake')
-rw-r--r-- | Modules/CMakeFindBinUtils.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeFindBinUtils.cmake b/Modules/CMakeFindBinUtils.cmake index ff178f6..e87a16b 100644 --- a/Modules/CMakeFindBinUtils.cmake +++ b/Modules/CMakeFindBinUtils.cmake @@ -99,6 +99,8 @@ else() set(_CMAKE_LINKER_NAMES "ld.lld") endif() list(APPEND _CMAKE_AR_NAMES "llvm-ar") + list(APPEND _CMAKE_RANLIB_NAMES "llvm-ranlib") + list(APPEND _CMAKE_STRIP_NAMES "llvm-strip") list(APPEND _CMAKE_NM_NAMES "llvm-nm") list(APPEND _CMAKE_OBJDUMP_NAMES "llvm-objdump") list(APPEND _CMAKE_OBJCOPY_NAMES "llvm-objcopy") |