From 58bcce43faf09f8070a7c9d3ad5556a6a8c56de7 Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Sat, 10 Feb 2018 20:16:50 -0500
Subject: [PATCH 08/27] cmake policies

use cmake_policy to silence warnings without updating code.
Reduces compilation log size on systems with recent CMake versions
without bumping cmake_minimum_required() for the project.
---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,10 @@
 # Make sure this version matches ${GR_CMAKE_MIN_VERSION} (a variable can't be
 # used here).
 cmake_minimum_required(VERSION 2.8.12)
+# use cmake_policy to silence warnings without updating code
+cmake_policy(SET CMP0026 OLD)
+cmake_policy(SET CMP0045 OLD)
+cmake_policy(SET CMP0046 OLD)
 project(gnuradio CXX C)
 enable_testing()
 
