diff options
author | David Benjamin <davidben@chromium.org> | 2015-02-23 21:06:19 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-23 22:59:48 +0300 |
commit | 3ce3c369cb05b4ba9dcaad79b552713e7fa3581f (patch) | |
tree | aadee0a06c0f0635aaf8ecbab2dd7ca00c62648a /crypto | |
parent | 87c8a643e1dd290780a20a11c5c98b043da387f6 (diff) |
Find perl using the CMake's standard FindPerl module.
This gives a standard PERL_EXECUTABLE configuration knob which is useful for
specifying a perl to use without having it in PATH.
Change-Id: I4b196b77e0b4666081a3f291fee3654c47925844
Reviewed-on: https://boringssl-review.googlesource.com/3570
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 972d57db..bbd4f201 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt @@ -37,7 +37,7 @@ endif() function(perlasm dest src) add_custom_command( OUTPUT ${dest} - COMMAND perl ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} > ${dest} + COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} > ${dest} DEPENDS ${src} ${PROJECT_SOURCE_DIR}/crypto/perlasm/x86_64-xlate.pl |