mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06: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()
|
||||
|
||||
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")
|
||||
file(WRITE "${json_file}" "${actual_stdout}")
|
||||
set(actual_stdout "" PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user