Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-03-23 21:35:33 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-07-26 14:16:01 +0300
commita84d2524ab97a6af798fd176f060e62f0cf73d04 (patch)
tree3f8efcb1281c4c44e01ea172ef69c07a79548950 /deps
parenta6a8063768d1ee9d792b1261f6faff6be6d6797e (diff)
Fix OpenSSL when not cross compiling
Diffstat (limited to 'deps')
-rw-r--r--deps/OpenSSL/OpenSSL.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/OpenSSL/OpenSSL.cmake b/deps/OpenSSL/OpenSSL.cmake
index 9b716f6de..347b30d05 100644
--- a/deps/OpenSSL/OpenSSL.cmake
+++ b/deps/OpenSSL/OpenSSL.cmake
@@ -2,9 +2,11 @@
include(ProcessorCount)
ProcessorCount(NPROC)
+set(_conf_cmd "./config")
set(_cross_arch "")
set(_cross_comp_prefix_line "")
if (CMAKE_CROSSCOMPILING)
+ set(_conf_cmd "./Configure")
set(_cross_comp_prefix_line "--cross-compile-prefix=${TOOLCHAIN_PREFIX}-")
if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")
@@ -21,7 +23,7 @@ ExternalProject_Add(dep_OpenSSL
URL_HASH SHA256=e2acf0cf58d9bff2b42f2dc0aee79340c8ffe2c5e45d3ca4533dd5d4f5775b1d
DOWNLOAD_DIR ${DEP_DOWNLOAD_DIR}/OpenSSL
BUILD_IN_SOURCE ON
- CONFIGURE_COMMAND ./Configure ${_cross_arch}
+ CONFIGURE_COMMAND ${_conf_cmd} ${_cross_arch}
"--prefix=${DESTDIR}/usr/local"
${_cross_comp_prefix_line}
no-shared