mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 03:15:43 +01:00
cmake: update interpreter requirement for the test suite generator
The test suite generator has been a Python script for a long time, but tests/CMakeLists.txt still looked for Perl. The reference to PYTHON_INTERP only worked due to a call to find_package(PythonInterp) in the toplevel CMakeLists.txt, and cmake would not have printed the expected error message if python was not available.
This commit is contained in:
parent
9740929371
commit
ea82042ff6
@ -9,9 +9,9 @@ if(NOT DEFINED MBEDTLS_DIR)
|
|||||||
set(MBEDTLS_DIR ${CMAKE_SOURCE_DIR})
|
set(MBEDTLS_DIR ${CMAKE_SOURCE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Perl)
|
find_package(PythonInterp)
|
||||||
if(NOT PERL_FOUND)
|
if(NOT PYTHONINTERP_FOUND)
|
||||||
message(FATAL_ERROR "Cannot build test suites without Perl")
|
message(FATAL_ERROR "Cannot build test suites without Python 2 or 3")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Enable definition of various functions used throughout the testsuite
|
# Enable definition of various functions used throughout the testsuite
|
||||||
|
Loading…
Reference in New Issue
Block a user