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

This commit is contained in:
Gulliver 2020-09-18 18:59:38 +02:00
parent d8daead33e
commit 20f824e8e8

View File

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 3.1.3) cmake_minimum_required(VERSION 3.1.3)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
project(expat project(expat
VERSION VERSION
2.2.9 2.2.9