From bcd92084287484bdbe402680179bc51f7dd96d11 Mon Sep 17 00:00:00 2001 From: Eric Miotto <1094986+edymtt@users.noreply.github.com> Date: Fri, 2 Sep 2022 08:58:00 -0700 Subject: [PATCH] [1.1.x] build: use cctols ranlib on Darwin (#130) This complements the change in #105 and allows to build with a CMake newer than 3.19.6. Addresses rdar://99435188 (cherry picked from commit 7ba978bbd451e2f831f84a805c73393b331e0aa8) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0da9625..9831cee6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,7 @@ endif() if(CMAKE_SYSTEM_NAME STREQUAL Darwin AND NOT CMAKE_CROSSCOMPILING) set(CMAKE_AR "/usr/bin/ar") set(CMAKE_C_ARCHIVE_CREATE " crs ") + set(CMAKE_RANLIB "/usr/bin/ranlib") endif() if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)