diff --git a/boringssl/CMakeLists.txt b/boringssl/CMakeLists.txt index 05f6571b..949691d2 100644 --- a/boringssl/CMakeLists.txt +++ b/boringssl/CMakeLists.txt @@ -15,8 +15,13 @@ enable_language(CXX) if(ANDROID) # Android-NDK CMake files reconfigure the path and so Go and Perl won't be # found. However, ninja will still find them in $PATH if we just name them. - set(PERL_EXECUTABLE "perl") - set(GO_EXECUTABLE "go") + if (NOT PERL_EXECUTABLE) + set(PERL_EXECUTABLE "perl") + endif() + + if (NOT GO_EXECUTABLE) + set(GO_EXECUTABLE "go") + endif() else() find_package(Perl REQUIRED) find_program(GO_EXECUTABLE go)