Skip to content

Commit

Permalink
Enable building openssl with custom triplet.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornpiltz authored Oct 17, 2017
1 parent a536a46 commit 3c0feb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ports/openssl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ set(CONFIGURE_COMMAND ${PERL} Configure
no-ssl2
)

if(TARGET_TRIPLET MATCHES "x86-windows")
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(OPENSSL_ARCH VC-WIN32)
set(OPENSSL_DO "ms\\do_nasm.bat")
elseif(TARGET_TRIPLET MATCHES "x64-windows")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(OPENSSL_ARCH VC-WIN64A)
set(OPENSSL_DO "ms\\do_win64a.bat")
else()
message(FATAL_ERROR "Unsupported target triplet: ${TARGET_TRIPLET}")
message(FATAL_ERROR "Unsupported target architecture: ${VCPKG_TARGET_ARCHITECTURE}")
endif()

if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
Expand Down

0 comments on commit 3c0feb5

Please sign in to comment.