aboutsummaryrefslogtreecommitdiff
path: root/ports/openssl-unix
diff options
context:
space:
mode:
authorgrdowns <grdowns@microsoft.com>2019-06-28 17:32:12 -0700
committergrdowns <grdowns@microsoft.com>2019-06-28 17:32:12 -0700
commite27fe911982284788e63f4a92339386554706a4b (patch)
treee695af1d6733cea93a29adab73ff819430ff872e /ports/openssl-unix
parent1586330395db0bfa14c40c4b1a8d4da6c8f7c5f7 (diff)
parent62ed7c17318b4f46109c2de73b7584fb04e85720 (diff)
downloadvcpkg-e27fe911982284788e63f4a92339386554706a4b.tar.gz
vcpkg-e27fe911982284788e63f4a92339386554706a4b.zip
Merge branch 'master' of https://github.com/Microsoft/vcpkg into openssl-version-bump
Diffstat (limited to 'ports/openssl-unix')
-rw-r--r--ports/openssl-unix/portfile.cmake12
1 files changed, 10 insertions, 2 deletions
diff --git a/ports/openssl-unix/portfile.cmake b/ports/openssl-unix/portfile.cmake
index df9b6b69f..a5915f1b9 100644
--- a/ports/openssl-unix/portfile.cmake
+++ b/ports/openssl-unix/portfile.cmake
@@ -1,12 +1,20 @@
+include(vcpkg_common_functions)
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
message(FATAL_ERROR "This port is only for openssl on Unix-like systems")
endif()
-include(vcpkg_common_functions)
-set(OPENSSL_VERSION 1.0.2s)
+if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h")
+ message(WARNING "Can't build openssl if libressl is installed. Please remove libressl, and try install openssl again if you need it. Build will continue but there might be problems since libressl is only a subset of openssl")
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+ return()
+endif()
+
vcpkg_find_acquire_program(PERL)
+set(OPENSSL_VERSION 1.0.2s)
+
vcpkg_download_distfile(OPENSSL_SOURCE_ARCHIVE
URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.0.2/openssl-${OPENSSL_VERSION}.tar.gz"
FILENAME "openssl-${OPENSSL_VERSION}.tar.gz"