From 81d07d833d328c6913fdf98de0be4a0bc69d3a67 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 22 Feb 2024 08:46:36 +0100 Subject: [PATCH] CMake: set policy CMP0148 to old --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e161c3d529..15b6c6a0f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,12 @@ if (POLICY CMP0072) set(OpenGL_GL_PREFERENCE LEGACY) endif(POLICY CMP0072) +# FindPythonInterp and FindPythonLibs modules are deprecated. +# Currently, they are still used by shiboken's CMake files +if (POLICY CMP0148) + cmake_policy(SET CMP0148 OLD) +endif() + option(FREECAD_USE_CCACHE "Auto detect and use ccache during compilation" ON) if(FREECAD_USE_CCACHE)