diff --git a/cmake/DPPStaticBundle.cmake b/cmake/DPPStaticBundle.cmake index 23304eb..50331c6 100644 --- a/cmake/DPPStaticBundle.cmake +++ b/cmake/DPPStaticBundle.cmake @@ -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