Skip to content

Commit

Permalink
Merge pull request #2 from rbsheth/hunter-v1.12.x
Browse files Browse the repository at this point in the history
Update to v1.12.1
  • Loading branch information
ruslo authored Jun 28, 2018
2 parents ca08fd9 + f8e58dc commit ab4c13c
Show file tree
Hide file tree
Showing 11 changed files with 603 additions and 64 deletions.
31 changes: 19 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@



cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.0)

include(cmake/HunterGate.cmake)
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.22.16.tar.gz"
SHA1 "84153076a3cebf4869c904fa5c93ea309386b583"
LOCAL
)

set(PACKAGE_NAME "grpc")
set(PACKAGE_VERSION "1.12.1")
Expand All @@ -30,10 +37,10 @@ set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/")
project(${PACKAGE_NAME} C CXX)

set(gRPC_INSTALL_BINDIR "bin" CACHE STRING "Installation directory for executables")
set(gRPC_INSTALL_LIBDIR "lib" CACHE STRING "Installation directory for libraries")
set(gRPC_INSTALL_INCLUDEDIR "include" CACHE STRING "Installation directory for headers")
set(gRPC_INSTALL_CMAKEDIR "lib/cmake/${PACKAGE_NAME}" CACHE STRING "Installation directory for cmake config files")
set(gRPC_INSTALL_BINDIR "bin" CACHE PATH "Installation directory for executables")
set(gRPC_INSTALL_LIBDIR "lib" CACHE PATH "Installation directory for libraries")
set(gRPC_INSTALL_INCLUDEDIR "include" CACHE PATH "Installation directory for headers")
set(gRPC_INSTALL_CMAKEDIR "lib/cmake/${PACKAGE_NAME}" CACHE PATH "Installation directory for cmake config files")

# Options
option(gRPC_BUILD_TESTS "Build tests" OFF)
Expand All @@ -51,25 +58,25 @@ set(gRPC_INSTALL ${gRPC_INSTALL_default} CACHE BOOL
# "module": build the dependency using sources from git submodule (under third_party)
# "package": use cmake's find_package functionality to locate a pre-installed dependency

set(gRPC_ZLIB_PROVIDER "module" CACHE STRING "Provider of zlib library")
set(gRPC_ZLIB_PROVIDER "package" CACHE STRING "Provider of zlib library")
set_property(CACHE gRPC_ZLIB_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_CARES_PROVIDER "module" CACHE STRING "Provider of c-ares library")
set(gRPC_CARES_PROVIDER "package" CACHE STRING "Provider of c-ares library")
set_property(CACHE gRPC_CARES_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_SSL_PROVIDER "module" CACHE STRING "Provider of ssl library")
set(gRPC_SSL_PROVIDER "package" CACHE STRING "Provider of ssl library")
set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
set(gRPC_PROTOBUF_PROVIDER "package" CACHE STRING "Provider of protobuf library")
set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_PROTOBUF_PACKAGE_TYPE "" CACHE STRING "Algorithm for searching protobuf package")
set(gRPC_PROTOBUF_PACKAGE_TYPE "CONFIG" CACHE STRING "Algorithm for searching protobuf package")
set_property(CACHE gRPC_PROTOBUF_PACKAGE_TYPE PROPERTY STRINGS "CONFIG" "MODULE")

set(gRPC_GFLAGS_PROVIDER "module" CACHE STRING "Provider of gflags library")
set(gRPC_GFLAGS_PROVIDER "package" CACHE STRING "Provider of gflags library")
set_property(CACHE gRPC_GFLAGS_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_BENCHMARK_PROVIDER "module" CACHE STRING "Provider of benchmark library")
set(gRPC_BENCHMARK_PROVIDER "package" CACHE STRING "Provider of benchmark library")
set_property(CACHE gRPC_BENCHMARK_PROVIDER PROPERTY STRINGS "module" "package")

set(gRPC_USE_PROTO_LITE OFF CACHE BOOL "Use the protobuf-lite library")
Expand Down
2 changes: 2 additions & 0 deletions cmake/Hunter/config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hunter_config(ZLIB VERSION 1.2.8-p3
CMAKE_ARGS CMAKE_POSITION_INDEPENDENT_CODE=TRUE)
Loading

0 comments on commit ab4c13c

Please sign in to comment.