From e68d2b8f821f0d9c7afa4cbf856c01e1294002d8 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Fri, 19 Apr 2024 14:03:22 -0700 Subject: [PATCH] Find python directly instead of using GzPython (#625) Part of gazebosim/gz-cmake#350. Signed-off-by: Steve Peters --- test/common_test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common_test/CMakeLists.txt b/test/common_test/CMakeLists.txt index 4df041547..7752edfd1 100644 --- a/test/common_test/CMakeLists.txt +++ b/test/common_test/CMakeLists.txt @@ -23,7 +23,7 @@ set(TEST_INSTALL_DIR ${CMAKE_INSTALL_LIBEXECDIR}/gz/${GZ_DESIGNATION}${PROJECT_V # Find the Python interpreter for running the # check_test_ran.py script -include(GzPython) +find_package(Python3 REQUIRED COMPONENTS Interpreter) function(configure_common_test PHYSICS_ENGINE_NAME test_name) if(NOT SKIP_${PHYSICS_ENGINE_NAME} AND NOT INTERNAL_SKIP_${PHYSICS_ENGINE_NAME})