summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake
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/execute_process/LastCommandAbnormalExit-1.cmake
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/execute_process/LastCommandAbnormalExit-1.cmake')
-rw-r--r--Tests/RunCMake/execute_process/LastCommandAbnormalExit-1.cmake4
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