Skip to content

Commit

Permalink
Fix glog wheel failure on MacOS (ray-project#2775)
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyuhong authored and robertnishihara committed Aug 30, 2018
1 parent 5146334 commit 9f06c19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/Modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9f06c19

Please sign in to comment.