diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a3f17728..7b672a8ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,11 @@ # Copyright 2016-2019 The EVMC Authors. # Licensed under the Apache License, Version 2.0. -cmake_minimum_required(VERSION 3.5) -cmake_policy(SET CMP0074 NEW) +cmake_minimum_required(VERSION 3.10) + +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() if(TARGET evmc) # The evmc library has been already created (probably by other submodule).