Merge pull request #5324 from Benitoite/patch-14
Mac: define CMAKE_AR / RANLIB only if undefined.
This commit is contained in:
commit
cd6f45f700
@ -358,8 +358,12 @@ if(WITH_LTO)
|
|||||||
string(REGEX REPLACE ".* ([0-9.]+)\n.*" "\\1" BINUTILS_VERSION_DETECTED "${BINUTILS_VERSION_DETECTED}")
|
string(REGEX REPLACE ".* ([0-9.]+)\n.*" "\\1" BINUTILS_VERSION_DETECTED "${BINUTILS_VERSION_DETECTED}")
|
||||||
if("${BINUTILS_VERSION_DETECTED}" VERSION_LESS "${BINUTILS_VERSION_MININUM}")
|
if("${BINUTILS_VERSION_DETECTED}" VERSION_LESS "${BINUTILS_VERSION_MININUM}")
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(CMAKE_AR "/opt/local/bin/ar")
|
if(!CMAKE_AR)
|
||||||
set(CMAKE_RANLIB "/opt/local/bin/ranlib")
|
set(CMAKE_AR "/opt/local/bin/ar")
|
||||||
|
endif()
|
||||||
|
if(!CMAKE_RANLIB)
|
||||||
|
set(CMAKE_RANLIB "/opt/local/bin/ranlib")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
set(CMAKE_AR "/usr/bin/gcc-ar")
|
set(CMAKE_AR "/usr/bin/gcc-ar")
|
||||||
set(CMAKE_RANLIB "/usr/bin/gcc-ranlib")
|
set(CMAKE_RANLIB "/usr/bin/gcc-ranlib")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user