From 8faa45defe43b23280d44aa477067466760ffc6a Mon Sep 17 00:00:00 2001 From: Adam Gu Date: Tue, 21 Aug 2018 11:00:22 +0800 Subject: [PATCH] Set policy CMP0074 to eliminate CMake warning. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c98ba63..761f03e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,11 @@ cmake_minimum_required(VERSION 3.1.0) + +if(POLICY CMP0074) + # find_package() uses _ROOT variables. + # This policy was introduced in CMake version 3.12. + cmake_policy(SET CMP0074 NEW) +endif() + project(webcc) option(WEBCC_ENABLE_LOG "Enable logging?" ON)