DPPStaticBundle: get perl executable with find_program

This commit is contained in:
Syping 2024-03-17 05:22:22 +01:00
parent 66a504ac55
commit 9a5f37929a

View file

@ -19,7 +19,6 @@
include(ArgumentPassthrough)
# OpenSSL needs to be configured with perl and build with make
find_package(Perl REQUIRED)
find_program(MAKE_EXECUTABLE NAMES make gmake)
if (NOT DEFINED MAKE_EXECUTABLE)
message(SEND_ERROR "make not found")
@ -35,6 +34,11 @@ if (DEFINED NPROC_EXECUTABLE)
set(MAKE_JOBS_ARG "-j${NPROC}")
endif()
find_program(PERL_EXECUTABLE NAMES perl)
if (NOT DEFINED PERL_EXECUTABLE)
message(SEND_ERROR "perl not found")
endif()
include(ExternalProject)
ExternalProject_Add(ZLIB
URL https://www.zlib.net/zlib-1.3.1.tar.xz