diff --git a/setup.py b/setup.py index 2eb888a4..57512961 100644 --- a/setup.py +++ b/setup.py @@ -207,6 +207,11 @@ def _build_dependencies_impl(self, build_dir, install_path, osx_arch=None): cmake_args = [cmake] cmake_args.append(f'-H{source_dir}') cmake_args.append(f'-B{build_dir}') + + # This is the minimum version of the Windows SDK needed for schannel.h with SCH_CREDENTIALS and + # TLS_PARAMETERS. These are required to build Windows Binaries with TLS 1.3 support. + cmake_args.append('-DCMAKE_SYSTEM_VERSION=10.0.17763.0') + cmake_args.extend(determine_generator_args()) cmake_args.extend(determine_cross_compile_args()) cmake_args.extend([