From 4bbdfcbffaee9514060e6981bfcb44a412ecae0a Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Tue, 12 Dec 2023 12:54:03 +0100 Subject: [PATCH] Replace deprecated find_package for python --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 337da698..0d6a71f4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,7 +2,7 @@ # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt -find_package(PythonInterp) +find_package(Python3) if (PYTHONINTERP_FOUND) # checks that b2 and cmake are in sync add_test(NAME runpy-${PROJECT_NAME}_check_build_system COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/check_build_system.py) @@ -152,4 +152,4 @@ if (NOT(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERS endif() -endif() \ No newline at end of file +endif()