mirror of
https://github.com/Syping/dtranslatebot.git
synced 2024-11-22 13:50:22 +01:00
DPPStaticBundle: get perl executable with find_program
This commit is contained in:
parent
66a504ac55
commit
9a5f37929a
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,6 @@
|
||||||
include(ArgumentPassthrough)
|
include(ArgumentPassthrough)
|
||||||
|
|
||||||
# OpenSSL needs to be configured with perl and build with make
|
# OpenSSL needs to be configured with perl and build with make
|
||||||
find_package(Perl REQUIRED)
|
|
||||||
find_program(MAKE_EXECUTABLE NAMES make gmake)
|
find_program(MAKE_EXECUTABLE NAMES make gmake)
|
||||||
if (NOT DEFINED MAKE_EXECUTABLE)
|
if (NOT DEFINED MAKE_EXECUTABLE)
|
||||||
message(SEND_ERROR "make not found")
|
message(SEND_ERROR "make not found")
|
||||||
|
@ -35,6 +34,11 @@ if (DEFINED NPROC_EXECUTABLE)
|
||||||
set(MAKE_JOBS_ARG "-j${NPROC}")
|
set(MAKE_JOBS_ARG "-j${NPROC}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
find_program(PERL_EXECUTABLE NAMES perl)
|
||||||
|
if (NOT DEFINED PERL_EXECUTABLE)
|
||||||
|
message(SEND_ERROR "perl not found")
|
||||||
|
endif()
|
||||||
|
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
ExternalProject_Add(ZLIB
|
ExternalProject_Add(ZLIB
|
||||||
URL https://www.zlib.net/zlib-1.3.1.tar.xz
|
URL https://www.zlib.net/zlib-1.3.1.tar.xz
|
||||||
|
|
Loading…
Reference in a new issue