From 20f824e8e800a47ac19e45cf5392039a02c5836f Mon Sep 17 00:00:00 2001 From: Gulliver Date: Fri, 18 Sep 2020 18:59:38 +0200 Subject: [PATCH] added "new" behaviour for Policy CMP0077 which allows to control the build options by variables if lib is used by FetchContent of a super project --- expat/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index b2ae0451..4b9308d8 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.1.3) +if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif() + project(expat VERSION 2.2.9