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/CMakePresets | |
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/CMakePresets')
-rw-r--r-- | Tests/RunCMake/CMakePresets/check.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/CMakePresets/validate_schema.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMakePresets/check.cmake b/Tests/RunCMake/CMakePresets/check.cmake index cef43f4..03f96a9 100644 --- a/Tests/RunCMake/CMakePresets/check.cmake +++ b/Tests/RunCMake/CMakePresets/check.cmake @@ -1,4 +1,4 @@ -if(PYTHON_EXECUTABLE AND CMake_TEST_JSON_SCHEMA) +if(Python_EXECUTABLE AND CMake_TEST_JSON_SCHEMA) if(NOT CMakePresets_SCHEMA_EXPECTED_RESULT) set(CMakePresets_SCHEMA_EXPECTED_RESULT 0) endif() diff --git a/Tests/RunCMake/CMakePresets/validate_schema.cmake b/Tests/RunCMake/CMakePresets/validate_schema.cmake index 68b638f..ed60760 100644 --- a/Tests/RunCMake/CMakePresets/validate_schema.cmake +++ b/Tests/RunCMake/CMakePresets/validate_schema.cmake @@ -4,7 +4,7 @@ function(validate_schema file expected_result) endif() execute_process( - COMMAND "${PYTHON_EXECUTABLE}" "${CMakePresets_VALIDATE_SCRIPT_PATH}" "${file}" + COMMAND "${Python_EXECUTABLE}" "${CMakePresets_VALIDATE_SCRIPT_PATH}" "${file}" RESULT_VARIABLE _result OUTPUT_VARIABLE _output ERROR_VARIABLE _error |