From a73224ecef9c3c3acf3288eafec81fb9c15dc90e Mon Sep 17 00:00:00 2001 From: gg Date: Tue, 13 Jan 2026 16:19:47 -0500 Subject: [PATCH] make old policy conditional on configuration --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d0a960d..617a7196 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,9 @@ set(COPYRIGHT_YEAR "2025") set(COPYRIGHT_HOLDERS "The Monero Project") cmake_policy(SET CMP0074 NEW) -cmake_policy(SET CMP0148 OLD) +if(POLICY CMP0148) + cmake_policy(SET CMP0148 OLD) +endif() # Configurable options option(STATIC "Link libraries statically, requires static Qt" OFF) -- 2.52.0