Skip to content

Commit

Permalink
grpc bin default path when cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jwinarske committed Feb 25, 2020
1 parent 3ff35d1 commit e0251a3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cmake/build_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ set(_PROTOBUF_LIBRARIES ${PROTOBUF_LIB})

set(GOOGLEAPIS_GENS_PATH ${CMAKE_INSTALL_PREFIX}/gens)

if(NOT CMAKE_CROSSCOMPILING)
set(PROTOBUF_ROOT_FOLDER ${_GRPC_SRC_PATH}-build)
set(GRPC_PLUGINPATH ${_GRPC_SRC_PATH}-build)
if(CMAKE_CROSSCOMPILING)
if(NOT PROTOBUF_ROOT_FOLDER)
set(PROTOBUF_ROOT_FOLDER /usr/local/bin)
endif()
if(NOT GRPC_PLUGINPATH)
set(GRPC_PLUGINPATH /usr/local/bin)
endif()
else()
set(PROTOBUF_ROOT_FOLDER ${_GRPC_SRC_PATH}-build)
set(GRPC_PLUGINPATH ${_GRPC_SRC_PATH}-build)
endif()

ExternalProject_Add(googleapis
Expand Down

0 comments on commit e0251a3

Please sign in to comment.