mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
Tests: Fix RunCMake.CTestCommandLine case when no python is found
Do not try to run the python checks if the python executable is not available.
This commit is contained in:
@@ -175,6 +175,9 @@ endfunction()
|
|||||||
run_TestStdin()
|
run_TestStdin()
|
||||||
|
|
||||||
function(show_only_json_check_python v)
|
function(show_only_json_check_python v)
|
||||||
|
if(RunCMake_TEST_FAILED OR NOT PYTHON_EXECUTABLE)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
set(json_file "${RunCMake_TEST_BINARY_DIR}/ctest.json")
|
set(json_file "${RunCMake_TEST_BINARY_DIR}/ctest.json")
|
||||||
file(WRITE "${json_file}" "${actual_stdout}")
|
file(WRITE "${json_file}" "${actual_stdout}")
|
||||||
set(actual_stdout "" PARENT_SCOPE)
|
set(actual_stdout "" PARENT_SCOPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user