From 3722deff12ec2e79c479ceae3a829752f92bb710 Mon Sep 17 00:00:00 2001 From: Gil Date: Tue, 26 Jun 2018 15:05:28 -0700 Subject: Install protobuf during CMake build (#1460) * Install protobuf * Use the built-in FindProtobuf.cmake * Add additional build configuration flags * Preserve generator configuration in the protobuf sub-build Without this, the build fails on Win64 because the default configuration builds a Win32 libprotobuf and the Win64 build rejects it. * Wire the installed protobuf into the gRPC build. * Install nanopb --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cdddec..c2bf56d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,10 +47,13 @@ set( enable_testing() +# These are ordered by a topological sort on DEPENDS attributes. This is +# required because CMake fails the build if you have a DEPENDS on a target that +# does not exist yet. include(external/FirebaseCore) include(external/googletest) include(external/leveldb) -include(external/grpc) include(external/protobuf) include(external/nanopb) +include(external/grpc) include(external/firestore) -- cgit v1.2.3