This commit is contained in:
AdamerGitHub 2026-09-03 16:21:51 -07:00 committed by GitHub
commit 8b6312bfc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,11 @@ if (gmock_build_tests)
############################################################
# Python tests.
# Python is found in googletest's directory scope, which does not propagate
# to this parent scope, and the imported Python3::Interpreter target used by
# py_test() is directory-scoped as well, so the search is repeated here.
find_package(Python3 COMPONENTS Interpreter QUIET)
cxx_executable(gmock_leak_test_ test gmock_main)
py_test(gmock_leak_test)