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/CommandLine | |
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/CommandLine')
-rw-r--r-- | Tests/RunCMake/CommandLine/trace-json-v1-check.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/CommandLine/trace-json-v1-check.cmake b/Tests/RunCMake/CommandLine/trace-json-v1-check.cmake index 66af039..e9a4a59 100644 --- a/Tests/RunCMake/CommandLine/trace-json-v1-check.cmake +++ b/Tests/RunCMake/CommandLine/trace-json-v1-check.cmake @@ -1,6 +1,6 @@ -if(PYTHON_EXECUTABLE) +if(Python_EXECUTABLE) execute_process( - COMMAND ${PYTHON_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" "${RunCMake_BINARY_DIR}/json-v1.trace" + COMMAND ${Python_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" "${RunCMake_BINARY_DIR}/json-v1.trace" RESULT_VARIABLE result OUTPUT_VARIABLE output ERROR_VARIABLE output diff --git a/Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake b/Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake index 7916d2e..79079e1 100644 --- a/Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake +++ b/Tests/RunCMake/CommandLine/trace-json-v1-expand-check.cmake @@ -1,6 +1,6 @@ -if(PYTHON_EXECUTABLE) +if(Python_EXECUTABLE) execute_process( - COMMAND ${PYTHON_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" --expand "${RunCMake_BINARY_DIR}/json-v1-expand.trace" + COMMAND ${Python_EXECUTABLE} "${RunCMake_SOURCE_DIR}/trace-json-v1-check.py" --expand "${RunCMake_BINARY_DIR}/json-v1-expand.trace" RESULT_VARIABLE result OUTPUT_VARIABLE output ERROR_VARIABLE output |