diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-04-21 18:08:29 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-04-21 18:23:36 (GMT) |
commit | 313ea361b0435b18e89fb652bf59a8aef25a066b (patch) | |
tree | d0a6ea4e46ab2e64cfe81518b0cb7497e94efc1a /Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake | |
parent | b6a6190877ebc6098fd01fe34dcd4cca39e1f182 (diff) | |
download | CMake-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/execute_process/LastCommandAbnormalExit-1.cmake')
-rw-r--r-- | Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake b/Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake index 5a4574c..e4a125d 100644 --- a/Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake +++ b/Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake @@ -1,11 +1,11 @@ -execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c +execute_process(COMMAND "${Python_EXECUTABLE}" -c "import os; os.kill(os.getpid(),11)" COMMAND ${CMAKE_COMMAND} -E true RESULT_VARIABLE result ) if(result EQUAL "0") - execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c + execute_process(COMMAND "${Python_EXECUTABLE}" -c "import os; os.kill(os.getpid(),11)" COMMAND ${CMAKE_COMMAND} -E true COMMAND_ERROR_IS_FATAL LAST |