diff --git a/tools/git2.py b/tools/git2.py index 80d80b9..92f1a98 100644 --- a/tools/git2.py +++ b/tools/git2.py @@ -27,6 +27,8 @@ def build_library(env, deps): "LIBSSH2_LIBRARY": deps[-1], "USE_WINHTTP": 0, "STATIC_CRT": env.get("use_static_cpp", True), + "CMAKE_DISABLE_FIND_PACKAGE_ZLIB": 1, + "CMAKE_DISABLE_FIND_PACKAGE_OPENSSL": 1, } if env["platform"] != "windows": diff --git a/tools/ssh2.py b/tools/ssh2.py index a5cbe60..581ad46 100644 --- a/tools/ssh2.py +++ b/tools/ssh2.py @@ -12,6 +12,8 @@ def build_library(env, deps): "BUILD_EXAMPLES": 0, "BUILD_TESTING": 0, "BUILD_SHARED_LIBS": 0, + "CMAKE_DISABLE_FIND_PACKAGE_ZLIB": 1, + "CMAKE_DISABLE_FIND_PACKAGE_OPENSSL": 1, "CRYPTO_BACKEND": "OpenSSL", }