Commit bcd901e5 authored by Simon Morlat's avatar Simon Morlat

Use find_program() as a fallback for perl detection.

parent babd4767
......@@ -47,11 +47,17 @@ set(CTR_DRBG_128_BIT_KEY_WARNING "${WARNING_BORDER}"
"${WARNING_BORDER}")
find_package(PythonInterp)
#find_package(Perl)
find_package(Perl)
if (PERL_EXECUTABLE)
message(STATUS "Perl was found.")
else()
message(WARNING "Perl was not found using the official way, let's try the simple way.")
find_program(PERL_EXECUTABLE perl PATHS "c:\\MinGW\\msys\\1.0\\bin" )
if(PERL_EXECUTABLE)
endif()
if(PERL_EXECUTABLE)
# If 128-bit keys are configured for CTR_DRBG, display an appropriate warning
execute_process(COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/config.pl -f ${CMAKE_CURRENT_SOURCE_DIR}/include/mbedtls/config.h get MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
RESULT_VARIABLE result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment