From fc2943f1d982618a4b824c02713d7328167fe879 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 28 Nov 2024 11:03:20 +0100 Subject: [PATCH] Fix CMake warning for FindPythonInterp CMake Warning (dev) at libcudacxx/CMakeLists.txt:43 (include): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning. --- libcudacxx/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcudacxx/CMakeLists.txt b/libcudacxx/CMakeLists.txt index 1ccfb6a92ff..39f86b6bdb2 100644 --- a/libcudacxx/CMakeLists.txt +++ b/libcudacxx/CMakeLists.txt @@ -40,8 +40,8 @@ option(LIBCUDACXX_ENABLE_LIBCUDACXX_TESTS "Enable libcu++ tests." ON) if (LIBCUDACXX_ENABLE_LIBCUDACXX_TESTS) enable_testing() - include(FindPythonInterp) - if (NOT PYTHONINTERP_FOUND) + find_package (Python COMPONENTS Interpreter) + if (NOT Python_Interpreter_FOUND) message(FATAL_ERROR "Failed to find python interpreter, which is required for running tests and " "building a libcu++ static library.")