diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2021-11-24 07:53:12 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-25 08:29:30 +0100 |
commit | 0969805e20ffe3731a9b020a990a907c3eec907f (patch) | |
tree | 8995c151af599177190367471b0f6e3ff63acd57 /CMakeLists.txt | |
parent | cc2870e275666ef7e4a6c27fa8b99938c6d1ff2f (diff) | |
download | curl-0969805e20ffe3731a9b020a990a907c3eec907f.tar.gz |
cmake: warn on use of the now deprecated symbols
Follow-up to 9108da2c26d
Closes #8052
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 532ef69f4..125b0a02b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -352,12 +352,27 @@ if(WIN32) check_library_exists_concat("winmm" getch HAVE_LIBWINMM) endif() +# This check below for use of deprecated symbols is only temporary and is to +# be removed again after a year's service. Remove after November 25, 2022. +set(CURL_RECONFIG_REQUIRED 0) +foreach(_LIB GSSAPI OPENLDAP LIBSSH LIBSSH2 BEARSSL MBEDTLS NSS OPENSSL + SCHANNEL SECTRANSP WOLFSSL) + if(CMAKE_USE_${_LIB}) + set(CURL_RECONFIG_REQUIRED 1) + message(SEND_ERROR "The option CMAKE_USE_${_LIB} was renamed to CURL_USE_${_LIB}.") + endif() +endforeach() +if(CMAKE_USE_WINSSL) + set(CURL_RECONFIG_REQUIRED 1) + message(SEND_ERROR "The option CMAKE_USE_WINSSL was renamed to CURL_USE_SCHANNEL.") +endif() +if(CURL_RECONFIG_REQUIRED) + message(FATAL_ERROR "Reconfig required") +endif() + # check SSL libraries # TODO support GnuTLS option(CURL_ENABLE_SSL "Enable SSL support" ON) -if(CURL_USE_SCHANNEL) - message(FATAL_ERROR "The cmake option CURL_USE_SCHANNEL was renamed to CURL_USE_SCHANNEL.") -endif() if(APPLE) cmake_dependent_option(CURL_USE_SECTRANSP "enable Apple OS native SSL/TLS" OFF CURL_ENABLE_SSL OFF) |