From 9f06c19edd6a8b5d22a092cf14891642ee1e94c6 Mon Sep 17 00:00:00 2001 From: Yuhong Guo Date: Fri, 31 Aug 2018 00:06:19 +0800 Subject: [PATCH] Fix glog wheel failure on MacOS (#2775) --- cmake/Modules/ThirdpartyToolchain.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/ThirdpartyToolchain.cmake b/cmake/Modules/ThirdpartyToolchain.cmake index 389a2a6aa42b..04e3f6587a9c 100644 --- a/cmake/Modules/ThirdpartyToolchain.cmake +++ b/cmake/Modules/ThirdpartyToolchain.cmake @@ -98,7 +98,10 @@ include_directories(${Boost_INCLUDE_DIR}) if(RAY_USE_GLOG) message(STATUS "Starting to build glog") set(GLOG_VERSION "0.3.5") - set(GLOG_CMAKE_CXX_FLAGS ${EP_CXX_FLAGS} "-fPIC") + set(GLOG_CMAKE_CXX_FLAGS "${EP_CXX_FLAGS} -fPIC") + if(APPLE) + set(GLOG_CMAKE_CXX_FLAGS "${GLOG_CMAKE_CXX_FLAGS} -mmacosx-version-min=10.12") + endif() set(GLOG_URL "https://github.com/google/glog/archive/v${GLOG_VERSION}.tar.gz") set(GLOG_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/glog_ep-prefix/src/glog_ep")