From d127610ccf860ac1cad818f908e67fb17ccc1be2 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 18 Feb 2025 20:41:29 -0600 Subject: [PATCH] CMake: Add details about why CMP0148 is needed --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12cffbd4b2..0224a70061 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,9 @@ if(POLICY CMP0175) cmake_policy(SET CMP0175 NEW) endif() -# FindPythonInterp and FindPythonLibs modules are deprecated. -# Currently, they are still used by shiboken's CMake files +# FindPythonInterp and FindPythonLibs modules are deprecated, but are still in use by +# all versions of Shiboken2. This policy must be kept at OLD until Shiboken2 is no longer +# supported if (POLICY CMP0148) cmake_policy(SET CMP0148 OLD) endif()