From c19194fed5fa40263efa9b0548a0c641557f0513 Mon Sep 17 00:00:00 2001 From: Anthony Thibault Date: Mon, 15 Oct 2018 16:12:28 -0700 Subject: [PATCH] Squelch cmake warning CMP0074 without requiring an update to cmake 3.12. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a887a35fcc..c6cbd01219 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,11 @@ else() cmake_minimum_required(VERSION 3.2) endif() +if (${CMAKE_MAJOR_VERSION} GREATER 2 AND ${CMAKE_MINOR_VERSION} GREATER 11) + # squelch the Policy CMP0074 warning without requiring an update to cmake 3.12. + cmake_policy(SET CMP0074 NEW) +endif() + project(hifi) include("cmake/init.cmake")