 diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
-index 5c3b6e451..ad8e671aa 100644
+index 51e8478f6..0b18ea348 100644
 --- a/cmake/CMakeLists.txt
 +++ b/cmake/CMakeLists.txt
 @@ -15,6 +15,14 @@ endif ()

+if(POLICY CMP0077)
+	cmake_policy(SET CMP0077 NEW)
+endif()
 
 # Project
 project(protobuf C CXX)
@@ -53,7 +61,7 @@ else (BUILD_SHARED_LIBS)
 endif (BUILD_SHARED_LIBS)
 option(protobuf_BUILD_SHARED_LIBS "Build Shared Libraries" ${protobuf_BUILD_SHARED_LIBS_DEFAULT})
 include(CMakeDependentOption)

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