From 231f088ec78f7d10220860f0cc1e37374ca749b3 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Wed, 24 Nov 2021 03:12:19 -0500 Subject: squashme: show all errors at once and explicitly say rebuild required --- CMakeLists.txt | 10 ++++++++-- 1 file 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 -- cgit v1.2.1