forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mosquitto] Update to 2.0.18 (microsoft#34456)
* [mosquitto] Update to 2.0.18 * Disable android. ``` ci/installed/arm-neon-android/debug/lib/libssl.a /mnt/vcpkg-ci/installed/arm-neon-android/debug/lib/libcrypto.a -pthread -ldl -latomic -lm && : ld: error: undefined symbol: getgrgid_r >>> referenced by misc_mosq.c:192 (/mnt/vcpkg-ci/buildtrees/mosquitto/src/v2.0.18-5deb484567.clean/lib/misc_mosq.c:192) >>> lib/CMakeFiles/libmosquitto.dir/misc_mosq.c.o:(mosquitto__fopen) clang: error: linker command failed with exit code 1 (use -v to see invocation) ```
- Loading branch information
1 parent
4e0e7ef
commit a979460
Showing
7 changed files
with
46 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 9380a046..f2929e19 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -194,13 +194,13 @@ endif (WIN32) | ||
|
||
if (WITH_WEBSOCKETS) | ||
if (STATIC_WEBSOCKETS) | ||
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets_static) | ||
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets) | ||
if (WIN32) | ||
set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi) | ||
link_directories(${mosquitto_SOURCE_DIR}) | ||
endif (WIN32) | ||
else (STATIC_WEBSOCKETS) | ||
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets) | ||
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) | ||
endif (STATIC_WEBSOCKETS) | ||
endif (WITH_WEBSOCKETS) | ||
|
||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 62ce99e..61f941e 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -194,13 +194,13 @@ endif (WIN32) | ||
|
||
if (WITH_WEBSOCKETS) | ||
if (STATIC_WEBSOCKETS) | ||
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets_static) | ||
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets) | ||
if (WIN32) | ||
set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi) | ||
link_directories(${mosquitto_SOURCE_DIR}) | ||
endif (WIN32) | ||
else (STATIC_WEBSOCKETS) | ||
- set (MOSQ_LIBS ${MOSQ_LIBS} websockets) | ||
+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared) | ||
endif (STATIC_WEBSOCKETS) | ||
endif (WITH_WEBSOCKETS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4c55e05..adece3e 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -68,8 +68,8 @@ option(WITH_THREADING "Include client library threading support?" ON) | ||
if (WITH_THREADING) | ||
add_definitions("-DWITH_THREADING") | ||
if (WIN32) | ||
- find_package(Threads REQUIRED) | ||
- set (PTHREAD_LIBRARIES Threads::Threads) | ||
+ find_package(pthread CONFIG REQUIRED) | ||
+ set (PTHREAD_LIBRARIES PThreads4W::PThreads4W) | ||
set (PTHREAD_INCLUDE_DIR "") | ||
elseif (ANDROID) | ||
set (PTHREAD_LIBRARIES "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters