From cbbc59eefaf29d11d54f353cff44de6f85780538 Mon Sep 17 00:00:00 2001 From: Mark Cianciosa Date: Fri, 13 Sep 2024 10:00:07 +0900 Subject: [PATCH] Switch find python to use up to date cmake package. --- Testing/CMakeLists.txt | 2 +- Testing/tests/niter_test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Testing/CMakeLists.txt b/Testing/CMakeLists.txt index 51fce96..0633ad2 100644 --- a/Testing/CMakeLists.txt +++ b/Testing/CMakeLists.txt @@ -1,5 +1,5 @@ # The python interpreter may not be in the same location on all systems. -find_package (PythonInterp) +find_package (Python3 COMPONENTS Interpreter REQUIRED) set (TEST_SCRIPT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test_utilities) diff --git a/Testing/tests/niter_test/CMakeLists.txt b/Testing/tests/niter_test/CMakeLists.txt index 4db9e10..c280a78 100644 --- a/Testing/tests/niter_test/CMakeLists.txt +++ b/Testing/tests/niter_test/CMakeLists.txt @@ -18,7 +18,7 @@ set_tests_properties (niter_test PROCESSORS $) add_test (NAME niter_check_wout_test - COMMAND ${PYTHON_EXECUTABLE} ${TEST_SCRIPT_DIR}/check_file.py --file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc) + COMMAND ${Python3_EXECUTABLE} ${TEST_SCRIPT_DIR}/check_file.py --file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc) set_tests_properties (niter_check_wout_test PROPERTIES DEPENDS niter_test)