CMake: set policy CMP0148 to old

This commit is contained in:
wmayer
2024-02-22 08:46:36 +01:00
committed by wwmayer
parent 89a1dc0363
commit 90ede977a3

View File

@@ -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)