Use environment variables for CARES_HOME

This commit is contained in:
David Li authored and Wes McKinney committed 2019-01-19 19:23:38 -06:00
1 parent fe440ba0ec
commit 3f7a41cfd8
2 files changed
+7 -3

No files matched your search

+3 -3
View File
@@ -326,7 +326,7 @@ By default, Arrow will try to download and build these dependencies
when building Flight.
The optional `flight` libraries and tests can be built by passing
`-DARROW_FLIGHT=on`.
`-DARROW_FLIGHT=ON`.
```shell
cmake .. -DARROW_FLIGHT=ON -DARROW_BUILD_TESTS=ON
@@ -334,8 +334,8 @@ make
```
You can also use existing installations of the extra dependencies.
When building, pass `-DGRPC_HOME` and/or `-DPROTOBUF_HOME` and/or
`-DCARES_HOME`.
When building, set the environment variables `GRPC_HOME` and/or
`PROTOBUF_HOME` and/or `CARES_HOME`.
On Ubuntu/Debian, you can install these dependencies with:
@@ -89,6 +89,10 @@ if (DEFINED ENV{GRPC_HOME})
set(GRPC_HOME "$ENV{GRPC_HOME}")
endif()
if (DEFINED ENV{CARES_HOME})
set(CARES_HOME "$ENV{CARES_HOME}")
endif()
if (DEFINED ENV{GTEST_HOME})
set(GTEST_HOME "$ENV{GTEST_HOME}")
endif()