Enable server build when no builds are enabled
authorShadowNinja <shadowninja@minetest.net>
Tue, 1 Sep 2015 18:26:15 +0000 (14:26 -0400)
committerShadowNinja <shadowninja@minetest.net>
Tue, 1 Sep 2015 18:43:59 +0000 (14:43 -0400)
src/CMakeLists.txt

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