 --- CMakeLists.txt.orig	2019-02-16 23:43:52.372836136 +0100
-+++ CMakeLists.txt	2019-02-17 00:02:53.036141198 +0100
++++ CMakeLists.txt	2019-02-17 10:47:44.436643882 +0100
 @@ -1,4 +1,4 @@
 -cmake_minimum_required(VERSION 2.8.9)
 +cmake_minimum_required(VERSION 2.6.2)
  
  # General Advice
  #
-@@ -326,8 +326,10 @@
+@@ -326,9 +326,11 @@
  endif()
  
  
 -if (LWS_WITH_HTTP_PROXY AND (LWS_WITHOUT_CLIENT OR LWS_WITHOUT_SERVER))
--	message(FATAL_ERROR "You have to enable both client and server for http proxy")
 +if (LWS_WITH_HTTP_PROXY)
-+  if (LWS_WITHOUT_CLIENT OR LWS_WITHOUT_SERVER)
-+	  message(FATAL_ERROR "You have to enable both client and server for http proxy")
-+	endif()
++if (LWS_WITHOUT_CLIENT OR LWS_WITHOUT_SERVER)
+ 	message(FATAL_ERROR "You have to enable both client and server for http proxy")
  endif()
++endif()
  
  # Allow the user to override installation directories.
+ set(LWS_INSTALL_LIB_DIR       lib CACHE PATH "Installation directory for libraries")
 @@ -351,7 +353,7 @@
  	message(FATAL_ERROR "Makes no sense to compile with neither client nor server.")
  endif()

 	foreach(lib ${LWS_LIBRARIES})
 		set_target_properties(${lib}
 			PROPERTIES
@@ -1520,7 +1526,7 @@
 		endif()
 	endif()
 
-	list(APPEND TEST_SERVER_DATA 
+	list(APPEND TEST_SERVER_DATA
 		"${TEST_SERVER_SSL_KEY}"
 		"${TEST_SERVER_SSL_CERT}")
 endif()
@@ -1532,7 +1538,8 @@
 # Test applications
 #

 	message(FATAL_ERROR "Makes no sense to compile with neither static nor shared libraries.")
 endif()
 
@@ -934,11 +936,13 @@
 	endif()
 endif()
 
-if ((LWS_ROLE_H1 OR LWS_ROLE_H2) AND NOT LWS_WITHOUT_SERVER)
+if (LWS_ROLE_H1 OR LWS_ROLE_H2)
+if (NOT LWS_WITHOUT_SERVER)
 	list(APPEND SOURCES
 		lib/roles/http/server/server.c
 		lib/roles/http/server/lws-spa.c)
 endif()
+endif()
 
 if (LWS_ROLE_WS AND NOT LWS_WITHOUT_EXTENSIONS)
 	list(APPEND HDR_PRIVATE
@@ -1038,7 +1042,7 @@
 	endif()
 endif()
