mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-02-06 10:04:23 +01:00
cmake: do not check lws_config.h
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user