diff --git a/CMakeLists.txt b/CMakeLists.txt index bda66bc4..7afcd137 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ if(USE_WMAIN) endif() if (BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT) - find_package(PythonInterp) + find_package(Python3 COMPONENTS Interpreter) if (NOT PYTHONINTERP_FOUND) message(FATAL_ERROR "Python not found, but required for tests") endif()