aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/FindGRPC.cmake
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-07-11 15:55:36 -0700
committerGravatar GitHub <noreply@github.com>2018-07-11 15:55:36 -0700
commit7fc953fc6ffa69d159c0523d3902d867fe8c0ca5 (patch)
treed8551a0c0d592f5937435819ca3d6e8c1bec72a9 /cmake/FindGRPC.cmake
parente1ace703fbf4458d9e887ebf30050b1a0482a2d2 (diff)
Firestore CMake cleanup (#1510)
* Pull out sanitizer options into a separate file * Reorder packages * Remove the extra "external/$target" directory from PREFIX Instead of BINARY_DIR/external/foo/src/foo the contents will be in BINARY_DIR/src/foo. * Make libprotobuf-nanopb targets line up with nanopb's CMakeLists.txt * Fix CMake style
Diffstat (limited to 'cmake/FindGRPC.cmake')
-rw-r--r--cmake/FindGRPC.cmake16
1 files changed, 7 insertions, 9 deletions
diff --git a/cmake/FindGRPC.cmake b/cmake/FindGRPC.cmake
index ba8f857..1e5fcf2 100644
--- a/cmake/FindGRPC.cmake
+++ b/cmake/FindGRPC.cmake
@@ -15,8 +15,6 @@
include(FindPackageHandleStandardArgs)
include(FindZLIB)
-set(BINARY_DIR ${FIREBASE_BINARY_DIR}/external/grpc)
-
## ZLIB
# the grpc ExternalProject already figures out if zlib should be built or
@@ -25,7 +23,7 @@ set(BINARY_DIR ${FIREBASE_BINARY_DIR}/external/grpc)
find_library(
ZLIB_LIBRARY
NAMES z
- HINTS ${BINARY_DIR}/src/grpc-build/third_party/zlib
+ HINTS ${FIREBASE_BINARY_DIR}/src/grpc-build/third_party/zlib
)
# If found above, the standard package will honor the ZLIB_LIBRARY variable.
@@ -36,19 +34,19 @@ find_package(ZLIB REQUIRED)
find_path(
OPENSSL_INCLUDE_DIR openssl/ssl.h
- HINTS ${BINARY_DIR}/src/grpc/third_party/boringssl/include
+ HINTS ${FIREBASE_BINARY_DIR}/src/grpc/third_party/boringssl/include
)
find_library(
OPENSSL_SSL_LIBRARY
NAMES ssl
- HINTS ${BINARY_DIR}/src/grpc-build/third_party/boringssl/ssl
+ HINTS ${FIREBASE_BINARY_DIR}/src/grpc-build/third_party/boringssl/ssl
)
find_library(
OPENSSL_CRYPTO_LIBRARY
NAMES crypto
- HINTS ${BINARY_DIR}/src/grpc-build/third_party/boringssl/crypto
+ HINTS ${FIREBASE_BINARY_DIR}/src/grpc-build/third_party/boringssl/crypto
)
find_package(OpenSSL REQUIRED)
@@ -69,7 +67,7 @@ find_path(
HINTS
$ENV{GRPC_ROOT}/include
${GRPC_ROOT}/include
- ${BINARY_DIR}/src/grpc/include
+ ${FIREBASE_BINARY_DIR}/src/grpc/include
)
find_library(
@@ -78,7 +76,7 @@ find_library(
HINTS
$ENV{GRPC_ROOT}/lib
${GRPC_ROOT}/lib
- ${BINARY_DIR}/src/grpc-build
+ ${FIREBASE_BINARY_DIR}/src/grpc-build
)
find_library(
@@ -87,7 +85,7 @@ find_library(
HINTS
$ENV{GRPC_ROOT}/lib
${GRPC_ROOT}/lib
- ${BINARY_DIR}/src/grpc-build
+ ${FIREBASE_BINARY_DIR}/src/grpc-build
)
find_package_handle_standard_args(