From 6e1f0e73b60ca7309e309560dc37694fb2ee3641 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Wed, 31 Aug 2022 01:50:30 +0300 Subject: [PATCH] Set CMP0115 to new in EthPolicy --- cmake/EthPolicy.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/EthPolicy.cmake b/cmake/EthPolicy.cmake index f571a09cee4d..adde3b742f28 100644 --- a/cmake/EthPolicy.cmake +++ b/cmake/EthPolicy.cmake @@ -25,4 +25,10 @@ macro (eth_policy) if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") cmake_policy(SET CMP0135 NEW) endif() + + if(POLICY CMP0115) + # speedup of cmake command on Windows + # https://gitlab.kitware.com/cmake/cmake/-/issues/23154 + cmake_policy(SET CMP0115 NEW) + endif() endmacro()