aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-09-01 14:26:15 -0400
committerShadowNinja <shadowninja@minetest.net>2015-09-01 14:43:59 -0400
commit7419504079c894dd15fd84116505b853feb44287 (patch)
tree5d0a1c85d678b65c83f342dce213144679ca877c /src
parentfa30a14c5ce4cac402a6cecaee2e450969625f68 (diff)
downloadminetest-7419504079c894dd15fd84116505b853feb44287.tar.gz
minetest-7419504079c894dd15fd84116505b853feb44287.tar.bz2
minetest-7419504079c894dd15fd84116505b853feb44287.zip
Enable server build when no builds are enabled
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2d52de68b..b69c371cd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -27,6 +27,12 @@ set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
mark_as_advanced(EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
+if(NOT (BUILD_CLIENT OR BUILD_SERVER))
+ message(WARNING "Neither BUILD_CLIENT nor BUILD_SERVER is set! Setting BUILD_SERVER=true")
+ set(BUILD_SERVER TRUE)
+endif()
+
+
option(ENABLE_CURL "Enable cURL support for fetching media" TRUE)
set(USE_CURL FALSE)