Fix glog wheel failure on MacOS (#2775)

This commit is contained in:
Yuhong Guo
2018-08-31 00:06:19 +08:00
committed by Robert Nishihara
parent 514633456b
commit 9f06c19edd
+4 -1
View File
@@ -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")