Warn when building without cURL
authorShadowNinja <shadowninja@minetest.net>
Tue, 1 Sep 2015 18:27:41 +0000 (14:27 -0400)
committerShadowNinja <shadowninja@minetest.net>
Tue, 1 Sep 2015 18:43:59 +0000 (14:43 -0400)
src/CMakeLists.txt

index b69c371cd84f055fa87f77bb387fba4680d6cb8e..32e25c3bd00639bb7043724d26ecbf4c55355942 100644 (file)
@@ -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)