diff options
author | Andy Green <andy@warmcat.com> | 2020-04-16 06:53:10 +0100 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2020-04-16 06:59:45 +0100 |
commit | d339505f5120a296bfef34de14bd216b4c2257f1 (patch) | |
tree | 8ff208dac556617d2e56619968856a7d2e9fa203 /CMakeLists.txt | |
parent | a8eebc47a533db0e7a0d71d2c748c730147378df (diff) | |
download | libwebsockets-d339505f5120a296bfef34de14bd216b4c2257f1.tar.gz |
h2: cmake: build with NO_SERVER
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f510e1c..5e2dfbf6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,12 +383,6 @@ if(GIT_EXECUTABLE) message("Git commit hash: ${LWS_BUILD_HASH}") endif() -# translate old functionality enables to set up ROLE enables so nothing changes -if (LWS_WITH_HTTP2 AND LWS_WITHOUT_SERVER) - set(LWS_WITH_HTTP2 0) - message("HTTP2 disabled due to LWS_WITHOUT_SERVER") -endif() - if (LWS_WITH_HTTP2) set(LWS_ROLE_H2 1) endif() @@ -791,10 +785,6 @@ if (LWS_UNIX_SOCK) set(LWS_WITH_UNIX_SOCK 1) endif() -if (LWS_WITH_HTTP2) - set(LWS_WITH_HTTP2 1) -endif() - if ("${LWS_MAX_SMP}" STREQUAL "") set(LWS_MAX_SMP 1) endif() @@ -1514,7 +1504,7 @@ if (NOT LWS_WITHOUT_BUILTIN_SHA1) lib/misc/sha-1.c) endif() -if (LWS_WITH_HTTP2 AND NOT LWS_WITHOUT_SERVER) +if (LWS_WITH_HTTP2) list(APPEND SOURCES lib/roles/h2/http2.c lib/roles/h2/hpack.c |