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)