diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-10-07 16:33:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 01:33:46 -0700 |
| commit | 690215da95d13d4e6883c368822e1c5326ef056e (patch) | |
| tree | 50aaf0ec1187a7469aa56945f9f8144a8a294540 /ports/libwebsockets/fix-build-error.patch | |
| parent | 367bc36f3a5a613b988ef149ecd8e5375f9b7b2a (diff) | |
| download | vcpkg-690215da95d13d4e6883c368822e1c5326ef056e.tar.gz vcpkg-690215da95d13d4e6883c368822e1c5326ef056e.zip | |
[libwebsockets] Update to the latest version (#13803)
Diffstat (limited to 'ports/libwebsockets/fix-build-error.patch')
| -rw-r--r-- | ports/libwebsockets/fix-build-error.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/libwebsockets/fix-build-error.patch b/ports/libwebsockets/fix-build-error.patch new file mode 100644 index 000000000..0bab319af --- /dev/null +++ b/ports/libwebsockets/fix-build-error.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1e737e5..75534c1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -422,6 +422,11 @@ set(LWS_LIBMOUNT_LIBRARIES CACHE PATH "Path to the libmount library") + set(LWS_EXT_PTHREAD_INCLUDE_DIR CACHE PATH "Path to an external pthreads include directory") + set(LWS_EXT_PTHREAD_LIBRARIES CACHE PATH "Path to an external pthreads library") + ++if(WIN32) ++ find_package(pthreads_windows REQUIRED) ++ set(LWS_EXT_PTHREAD_INCLUDE_DIR ${PThreads4W_INCLUDE_DIR}) ++ set(LWS_EXT_PTHREAD_LIBRARIES ${PThreads4W_LIBRARY}) ++endif() + + if (LWS_WITH_HTTP_STREAM_COMPRESSION) + set(LWS_WITH_ZLIB 1) +@@ -728,7 +733,7 @@ if (MSVC) + # Turn off pointless microsoft security warnings. + add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) + # Fail the build if any warnings +- add_compile_options(/W3 /WX) ++ add_compile_options(/W3 /WX /wd4142 /wd4267) + endif(MSVC) + + if (MINGW) |
