[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)
This commit is contained in:
Eric Miotto authored and GitHub committed 2022-09-02 16:58:00 +01:00
1 parent ddb07e896a
commit bcd9208428
1 file changed
+1
+1
View File
@@ -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 "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
set(CMAKE_RANLIB "/usr/bin/ranlib")
endif()
if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)