mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
file(DOWNLOAD|UPLOAD): Add CMAKE_TLS_VERSION environment variable
Issue: #25701
This commit is contained in:
@@ -2030,6 +2030,12 @@ bool HandleDownloadCommand(std::vector<std::string> const& args,
|
||||
tls_version = *v;
|
||||
}
|
||||
}
|
||||
if (!tls_version) {
|
||||
if (cm::optional<std::string> v =
|
||||
cmSystemTools::GetEnvVar("CMAKE_TLS_VERSION")) {
|
||||
tls_version = std::move(v);
|
||||
}
|
||||
}
|
||||
|
||||
// Can't calculate hash if we don't save the file.
|
||||
// TODO Incrementally calculate hash in the write callback as the file is
|
||||
@@ -2421,6 +2427,12 @@ bool HandleUploadCommand(std::vector<std::string> const& args,
|
||||
tls_version = *v;
|
||||
}
|
||||
}
|
||||
if (!tls_version) {
|
||||
if (cm::optional<std::string> v =
|
||||
cmSystemTools::GetEnvVar("CMAKE_TLS_VERSION")) {
|
||||
tls_version = std::move(v);
|
||||
}
|
||||
}
|
||||
|
||||
// Open file for reading:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user