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")