    "NOT protobuf_BUILD_SHARED_LIBS" OFF)
  set(protobuf_WITH_ZLIB_DEFAULT ON)
  option(protobuf_WITH_ZLIB "Build with zlib support" ${protobuf_WITH_ZLIB_DEFAULT})
-@@ -129,24 +137,16 @@ endif (CMAKE_USE_PTHREADS_INIT)
+@@ -130,24 +138,16 @@ find_package(Threads REQUIRED)
  
  set(_protobuf_FIND_ZLIB)
  if (protobuf_WITH_ZLIB)

   ${protobuf_source_dir}/src)
 
diff --git a/cmake/install.cmake b/cmake/install.cmake
index ef5bb1306..c136c74db 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -126,17 +126,19 @@ configure_file(protobuf-options.cmake
 
 # Allows the build directory to be used as a find directory.
 

+if(POLICY CMP0077)
+	cmake_policy(SET CMP0077 NEW)
+endif()
 # MSVC runtime library flags are selected by an abstraction.
 if(POLICY CMP0091)
   cmake_policy(SET CMP0091 NEW)
@@ -57,7 +65,7 @@ else (BUILD_SHARED_LIBS)
 endif (BUILD_SHARED_LIBS)
 option(protobuf_BUILD_SHARED_LIBS "Build Shared Libraries" ${protobuf_BUILD_SHARED_LIBS_DEFAULT})
 include(CMakeDependentOption)
