From 829b7e612f5f0f0f21ac9ba21799f76eb7aed609 Mon Sep 17 00:00:00 2001 From: Natalia Gimelshein Date: Wed, 8 Mar 2023 19:45:56 +0000 Subject: [PATCH] require cmake 3.18, make policy conditional --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64dfe06119f5..68f26a048882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,10 @@ -cmake_minimum_required(VERSION 3.20) +cmake_minimum_required(VERSION 3.18) +if(POLICY CMP0116) # Introduced in cmake 3.20 # https://cmake.org/cmake/help/latest/policy/CMP0116.html -cmake_policy(SET CMP0116 OLD) + cmake_policy(SET CMP0116 OLD) +endif() include(ExternalProject)