From 3a31c6b4f41127f136b0319828bcf59422785e14 Mon Sep 17 00:00:00 2001
From: Henry Schreiner <henryschreineriii@utexas.edu>
Date: Fri, 18 Aug 2017 15:18:58 -0400
Subject: [PATCH] Adding CMake visibility policy setting

This policy setting will silence a warning when using with a visibility settings on targets. Due to the forced `cmake_minimum_version`, policy settings in CMakeLists calling this one (including the main CMakeLists) are lost, forcing the change to be made here.
---
 googletest/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index b5414608..59343ed2 100644
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -52,6 +52,10 @@ else()
 endif()
 cmake_minimum_required(VERSION 2.6.4)
 
+if (POLICY CMP0063) # Visibility
+  cmake_policy(SET CMP0063 NEW)
+endif (POLICY CMP0063)
+
 if (COMMAND set_up_hermetic_build)
   set_up_hermetic_build()
 endif()