Skip to content

Commit 06342d0

Browse files
committed
fixing mac build
1 parent 7c4b05e commit 06342d0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

CMakeLists-ExternalProjects.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,19 @@ if(WIN32)
7171
${CMAKE_STATIC_LIBRARY_PREFIX}libeay32${CMAKE_STATIC_LIBRARY_SUFFIX}
7272
${CMAKE_STATIC_LIBRARY_PREFIX}ssleay32${CMAKE_STATIC_LIBRARY_SUFFIX}
7373
)
74-
else()
74+
75+
else()
76+
if(APPLE)
77+
set(CONFIGURECOMMAND ./Configure darwin64-x86_64-cc)
78+
else()
79+
set(CONFIGURECOMMAND ./config)
80+
endif()
81+
82+
7583
ExternalProject_Add(
7684
openssl
7785
URL https://github.com/openssl/openssl/archive/OpenSSL_1_0_2l.tar.gz
78-
CONFIGURE_COMMAND ./config ${OPENSSLBUILDOPTIONS} ${PERLCONFIGURECOMMAND} "--prefix=${GLOBAL_OUTPUT_PATH}/openssl"
86+
CONFIGURE_COMMAND ${CONFIGURECOMMAND} ${OPENSSLBUILDOPTIONS} ${PERLCONFIGURECOMMAND} "--prefix=${GLOBAL_OUTPUT_PATH}/openssl"
7987
BUILD_COMMAND make
8088
BUILD_IN_SOURCE 1
8189
INSTALL_COMMAND make install

0 commit comments

Comments
 (0)