commit: 5579f4902a1d69f99115789f4c7bd89e07e58fc8 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Mon Oct 13 15:44:49 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Oct 16 19:14:23 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5579f490
cmake.eclass: Set CMAKE_POLICY_DEFAULT_CMP0094=NEW to fix FindPython See also: https://cmake.org/cmake/help/latest/policy/CMP0094.html Closes: https://bugs.gentoo.org/959154 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> eclass/cmake.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 7c825f87c367..e132b0b53deb 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -631,7 +631,8 @@ cmake_src_configure() { set(CMAKE_USER_MAKE_RULES_OVERRIDE "${build_rules}" CACHE FILEPATH "Gentoo override rules") set(CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" CACHE PATH "") set(BUILD_SHARED_LIBS ON CACHE BOOL "") - set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "") + set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "") # FindPythonInterp, Gentoo-bug #835799 + set(CMAKE_POLICY_DEFAULT_CMP0094 NEW CACHE STRING "" ) # FindPython, Gentoo-bug #959154 set(CMAKE_DISABLE_PRECOMPILE_HEADERS ON CACHE BOOL "") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF CACHE BOOL "") set(CMAKE_TLS_VERIFY ON CACHE BOOL "")
