summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestCommandLine
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-04-21 18:08:29 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-04-21 18:23:36 (GMT)
commit313ea361b0435b18e89fb652bf59a8aef25a066b (patch)
treed0a6ea4e46ab2e64cfe81518b0cb7497e94efc1a /Tests/RunCMake/CTestCommandLine
parentb6a6190877ebc6098fd01fe34dcd4cca39e1f182 (diff)
downloadCMake-313ea361b0435b18e89fb652bf59a8aef25a066b.zip
CMake-313ea361b0435b18e89fb652bf59a8aef25a066b.tar.gz
CMake-313ea361b0435b18e89fb652bf59a8aef25a066b.tar.bz2
CMake: Use FindPython instead of FindPythonInterp to build CMake itself
Fixes: #23444
Diffstat (limited to 'Tests/RunCMake/CTestCommandLine')
-rw-r--r--Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
index 6835834..8ac1747 100644
--- a/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake
@@ -342,14 +342,14 @@ endfunction()
run_TestStdin()
function(show_only_json_check_python v)
- if(RunCMake_TEST_FAILED OR NOT PYTHON_EXECUTABLE)
+ if(RunCMake_TEST_FAILED OR NOT Python_EXECUTABLE)
return()
endif()
set(json_file "${RunCMake_TEST_BINARY_DIR}/ctest.json")
file(WRITE "${json_file}" "${actual_stdout}")
set(actual_stdout "" PARENT_SCOPE)
execute_process(
- COMMAND ${PYTHON_EXECUTABLE} "${RunCMake_SOURCE_DIR}/show-only_json-v${v}_check.py" "${json_file}"
+ COMMAND ${Python_EXECUTABLE} "${RunCMake_SOURCE_DIR}/show-only_json-v${v}_check.py" "${json_file}"
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output