mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 04:01:47 +08:00
5aec72b4f3
* update mosquitto to 2.0.12 * update json * Update ports/mosquitto/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/libwebsockets/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * add head ref * remove plugins * update jsons * update libwebsockets * Update versions/m-/mosquitto.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update versions/l-/libwebsockets.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/mosquitto/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update version Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Jonliu1993 <13720414433@163.com>
19 lines
684 B
Diff
19 lines
684 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 07eff849..3edc7efa 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -67,12 +67,7 @@ option(WITH_THREADING "Include client library threading support?" ON)
|
|
if (WITH_THREADING)
|
|
add_definitions("-DWITH_THREADING")
|
|
if (WIN32)
|
|
- if (CMAKE_CL_64)
|
|
- set (PTHREAD_LIBRARIES C:\\pthreads\\Pre-built.2\\lib\\x64\\pthreadVC2.lib)
|
|
- else (CMAKE_CL_64)
|
|
- set (PTHREAD_LIBRARIES C:\\pthreads\\Pre-built.2\\lib\\x86\\pthreadVC2.lib)
|
|
- endif (CMAKE_CL_64)
|
|
- set (PTHREAD_INCLUDE_DIR C:\\pthreads\\Pre-built.2\\include)
|
|
+ find_package(pthread REQUIRED)
|
|
elseif (ANDROID)
|
|
set (PTHREAD_LIBRARIES "")
|
|
set (PTHREAD_INCLUDE_DIR "")
|