From cb7fe0c347124da60d115f1ec86352087994db86 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Thu, 29 Nov 2018 22:37:47 +0800 Subject: [PATCH] cmake: do not check lws_config.h --- CMakeLists.txt | 3 --- src/server.c | 3 --- 2 files changed, 6 deletions(-) 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 -- 2.43.4