diff options
author | Brad King <brad.king@kitware.com> | 2024-02-26 16:44:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-02-29 00:11:29 (GMT) |
commit | 2ef3bd9186e58d6486176417b5ef2de99b815820 (patch) | |
tree | fe9b2772d1e04c987d9686977bc9b47a6eb46a3a /Tests/RunCMake/FetchContent | |
parent | f0a36b1a7636e827893df9adc6c472023605e67e (diff) | |
download | CMake-2ef3bd9186e58d6486176417b5ef2de99b815820.zip CMake-2ef3bd9186e58d6486176417b5ef2de99b815820.tar.gz CMake-2ef3bd9186e58d6486176417b5ef2de99b815820.tar.bz2 |
ExternalProject: Add TLS version options for https connections
Add a `TLS_VERSION` option and honor `CMAKE_TLS_VERSION` variables.
Also map the version to Git options as we already do for `TLS_VERIFY`.
Issue: #25701
Diffstat (limited to 'Tests/RunCMake/FetchContent')
-rw-r--r-- | Tests/RunCMake/FetchContent/VarPassthroughs.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/VarPassthroughs.cmake b/Tests/RunCMake/FetchContent/VarPassthroughs.cmake index ad743d8..279c127 100644 --- a/Tests/RunCMake/FetchContent/VarPassthroughs.cmake +++ b/Tests/RunCMake/FetchContent/VarPassthroughs.cmake @@ -5,6 +5,7 @@ set(CMAKE_TLS_VERIFY BBBB) set(CMAKE_TLS_CAINFO CCCC) set(CMAKE_NETRC DDDD) set(CMAKE_NETRC_FILE EEEE) +set(CMAKE_TLS_VERSION FFFF) FetchContent_Declare(PassThrough DOWNLOAD_COMMAND ${CMAKE_COMMAND} -E echo "Download command executed" @@ -21,6 +22,10 @@ if(NOT contents MATCHES "CMAKE_EP_GIT_REMOTE_UPDATE_STRATEGY \\[==\\[AAAA\\]==\\ message(FATAL_ERROR "Missing CMAKE_EP_GIT_REMOTE_UPDATE_STRATEGY") endif() +if(NOT contents MATCHES "CMAKE_TLS_VERSION \\[==\\[FFFF\\]==\\]") + message(FATAL_ERROR "Missing CMAKE_TLS_VERSION") +endif() + if(NOT contents MATCHES "CMAKE_TLS_VERIFY \\[==\\[BBBB\\]==\\]") message(FATAL_ERROR "Missing CMAKE_TLS_VERIFY") endif() |