From e511282d78a844af24602791cd3cab9aa6e6996d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Tue, 1 Sep 2015 14:27:41 -0400 Subject: [PATCH] Warn when building without cURL --- src/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b69c371cd..32e25c3bd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,6 +46,15 @@ else() mark_as_advanced(CLEAR CURL_LIBRARY CURL_INCLUDE_DIR) endif() +if(NOT USE_CURL) + if(BUILD_CLIENT) + message(WARNING "cURL is required to load the server list") + endif() + if(BUILD_SERVER) + message(WARNING "cURL is required to announce to the server list") + endif() +endif() + option(ENABLE_GETTEXT "Use GetText for internationalization" FALSE) set(USE_GETTEXT FALSE)