From 4e4684cedf09032f455cc2b3db43e50bf2fa2631 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Wed, 25 Dec 2024 12:31:06 +0300 Subject: [PATCH] [cmake] set some policies --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 200b5d16e..32d6d0258 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,13 @@ if(APPLE) endif() endif() +if(POLICY CMP0142) + cmake_policy(SET CMP0142 NEW) +endif() +if(POLICY CMP0177) + cmake_policy(SET CMP0177 NEW) +endif() + ############################################ # User-provided options # ############################################