cmake: do not check lws_config.h

This commit is contained in:
Shuanglei Tao
2018-11-29 22:37:47 +08:00
parent 4d5a099c58
commit cb7fe0c347
2 changed files with 0 additions and 6 deletions

View File

@@ -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)

View File

@@ -8,9 +8,6 @@
#include <signal.h>
#include <sys/stat.h>
#ifdef HAVE_LWS_CONFIG_H
#include "lws_config.h"
#endif
#include <libwebsockets.h>
#include <json.h>