commit: 72af436c1c0914a435f8954124d45dcafd001418 Author: Peter Levine <plevine457 <AT> gmail <DOT> com> AuthorDate: Mon Sep 4 10:08:05 2023 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Mon Sep 4 10:08:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72af436c
dev-cpp/gtest: pass -DPython3_EXECUTABLE only if USE=test Switch -DPYTHON_EXECUTABLE to the more modern CMAKE -DPython3_EXECUTABLE. And consistent with other conditional constructs, eg. "use test && python-any-r1_pkg_setup", only pass -DPython3_EXECUTABLE if USE=test. Closes: https://bugs.gentoo.org/911476 Signed-off-by: Peter Levine <plevine457 <AT> gmail.com> Signed-off-by: David Seifert <soap <AT> gentoo.org> dev-cpp/gtest/gtest-9999.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild index 1e958926faa8..d46c8086a02a 100644 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ b/dev-cpp/gtest/gtest-9999.ebuild @@ -53,8 +53,9 @@ multilib_src_configure() { # tests -Dgmock_build_tests=$(usex test) -Dgtest_build_tests=$(usex test) - -DPYTHON_EXECUTABLE="${PYTHON}" ) + use test && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) + cmake_src_configure }