]> prime8.dev >> repos - ttyd.git/commitdiff
cmake: do not check lws_config.h
authorShuanglei Tao <tsl0922@gmail.com>
Thu, 29 Nov 2018 14:37:47 +0000 (22:37 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Thu, 29 Nov 2018 14:37:47 +0000 (22:37 +0800)
CMakeLists.txt
src/server.c

index 938c1dfd23c30c96e21442d79d36342b4d19c04c..bba1f7e2e7d5250b0595cf8a532a979b1d10a9fe 100644 (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)
index 0dfe138f5f12e25f040705736849fe774db688fe..96680d4ed7178ddc906ddd75cc61d8592548c56c 100644 (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>