From: Shuanglei Tao Date: Thu, 29 Nov 2018 14:37:47 +0000 (+0800) Subject: cmake: do not check lws_config.h X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=cb7fe0c347124da60d115f1ec86352087994db86;p=ttyd.git cmake: do not check lws_config.h --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 938c1df..bba1f7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,9 +50,6 @@ else() # try to find libwebsockets with pkg-config mark_as_advanced(LIBWEBSOCKETS_INCLUDE_DIR LIBWEBSOCKETS_LIBRARIES) endif() -include(CheckIncludeFile) -check_include_file(lws_config.h HAVE_LWS_CONFIG_H) - pkg_check_modules(PC_JSON-C REQUIRED json-c) find_path(JSON-C_INCLUDE_DIR json.h HINTS ${PC_JSON-C_INCLUDEDIR} ${PC_JSON-C_INCLUDE_DIRS} PATH_SUFFIXES json-c json) diff --git a/src/server.c b/src/server.c index 0dfe138..96680d4 100644 --- a/src/server.c +++ b/src/server.c @@ -8,9 +8,6 @@ #include #include -#ifdef HAVE_LWS_CONFIG_H -#include "lws_config.h" -#endif #include #include