vcpkg/ports/mosquitto/fix-dependence-pthreads.patch

14 lines
519 B
Diff
Raw Normal View History

diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 6355eaa..490df32 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -6,7 +6,7 @@ option(WITH_THREADING "Include client library threading support?" ON)
if (${WITH_THREADING} STREQUAL ON)
add_definitions("-DWITH_THREADING")
if (WIN32)
- find_library(PTHREAD_LIBRARIES NAMES pthreadsVC2)
+ find_library(PTHREAD_LIBRARIES NAMES pthreadVC2)
find_path(PTHREAD_INCLUDE_DIR pthread.h)
else (WIN32)
find_library(LIBPTHREAD pthread)