From acd98947a52352981db2bc890e9f6ac925eaa83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Thu, 23 Jan 2025 16:59:38 +0200 Subject: [PATCH] Make sure `CMP0148` exists Might help building on pre-3.27 CMake like in Debian 12. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4963f56ae9..f199796f4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,9 @@ if(POLICY CMP0167) cmake_policy(SET CMP0167 OLD) endif() -cmake_policy(SET CMP0148 OLD) +if(POLICY CMP0148) + cmake_policy(SET CMP0148 OLD) +endif() #--------------------------------------------- # Setting kind of build