Skip to content

Commit

Permalink
Merge pull request #9 from rbsheth/hunter-3.6.1.3
Browse files Browse the repository at this point in the history
Update to v3.6.1.3 plus cherry-picked commit
  • Loading branch information
ruslo authored Dec 19, 2018
2 parents 66dc42d + dfa809c commit 36dfa35
Show file tree
Hide file tree
Showing 7 changed files with 530 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.0)

include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.15.9.tar.gz"
SHA1 "3e1da8447bfdbf9514f42abf8ff05455530b9b1c"
)

# Project
project(protobuf C CXX)

hunter_add_package(ZLIB)

add_subdirectory(cmake)
6 changes: 3 additions & 3 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ if (protobuf_WITH_ZLIB)
# Set ZLIB_INCLUDE_DIRECTORIES for compatible
set(ZLIB_INCLUDE_DIRECTORIES ${ZLIB_INCLUDE_DIRECTORIES} ${ZLIB_INCLUDE_DIRS})
# Using imported target if exists
if (TARGET ZLIB::ZLIB)
set(ZLIB_LIBRARIES ZLIB::ZLIB)
if (TARGET ZLIB::zlib)
set(ZLIB_LIBRARIES ZLIB::zlib)
set(_protobuf_FIND_ZLIB "if(NOT ZLIB_FOUND)\n find_package(ZLIB)\nendif()")
endif (TARGET ZLIB::ZLIB)
endif (TARGET ZLIB::zlib)
else (ZLIB_FOUND)
set(HAVE_ZLIB 0)
# Explicitly set these to empty (override NOT_FOUND) so cmake doesn't
Expand Down
Loading

0 comments on commit 36dfa35

Please sign in to comment.