depot/third_party/nixpkgs/pkgs/applications/misc/synergy/darwin-non-static-openssl.patch
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

14 lines
571 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63764a75..46db60f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -339,9 +339,6 @@ endif()
# Apple has to use static libraries because
# "Use of the Apple-provided OpenSSL libraries by apps is strongly discouraged."
# https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/SecureNetworkCommunicationAPIs/SecureNetworkCommunicationAPIs.html
-if(APPLE OR DEFINED ENV{SYNERGY_STATIC_OPENSSL})
- set(OPENSSL_USE_STATIC_LIBS TRUE)
-endif()
find_package(OpenSSL REQUIRED)
#