summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-11-24 03:12:19 -0500
committerJay Satiro <raysatiro@yahoo.com>2021-11-24 03:12:19 -0500
commit231f088ec78f7d10220860f0cc1e37374ca749b3 (patch)
tree1584fe1c0437c5d2fe1432201eb268c7e3bc4e61
parent9cb86095c373829c4b0293d90cfe07e7f6a6b6a8 (diff)
downloadcurl-bagder/cmake-schannel.tar.gz
squashme: show all errors at once and explicitly say rebuild requiredbagder/cmake-schannel
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e45d3ab19..6afbca6ee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -352,14 +352,20 @@ if(WIN32)
check_library_exists_concat("winmm" getch HAVE_LIBWINMM)
endif()
+set(CURL_RECONFIG_REQUIRED 0)
foreach(_LIB GSSAPI OPENLDAP LIBSSH LIBSSH2 BEARSSL MBEDTLS NSS OPENSSL
SCHANNEL SECTRANSP WOLFSSL)
if(CMAKE_USE_${_LIB})
- message(FATAL_ERROR "The option CMAKE_USE_${_LIB} is now CURL_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)
- message(FATAL_ERROR "The option CMAKE_USE_WINSSL was renamed to CURL_USE_SCHANNEL.")
+ 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