From ab6651a8a5539e34d4f8cb6a9f4d14893dcd9936 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Wed, 17 Apr 2024 22:31:18 -0700 Subject: [PATCH] Find python directly instead of using GzPython 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})