Skip to content

Commit

Permalink
pass MAKEFLAGS to openssl build
Browse files Browse the repository at this point in the history
  • Loading branch information
truemedian authored and zhaozg committed Oct 25, 2021
1 parent 91e06ee commit 2335e28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/openssl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ else (WithSharedOpenSSL)
set(OPENSSL_BUILD_COMMAND nmake)
else()
set(OPENSSL_CONFIGURE_COMMAND ./config ${OPENSSL_CONFIG_OPTIONS})
set(OPENSSL_BUILD_COMMAND make)

if(DEFINED $ENV{MAKEFLAGS})
set(OPENSSL_BUILD_COMMAND make $ENV{MAKEFLAGS})
else()
set(OPENSSL_BUILD_COMMAND make)
endif()
endif()

ExternalProject_Add(openssl
Expand Down

0 comments on commit 2335e28

Please sign in to comment.