2021-09-28 08:51:07 +08:00
|
|
|
diff --git a/apps/mosquitto_passwd/CMakeLists.txt b/apps/mosquitto_passwd/CMakeLists.txt
|
2022-04-22 05:33:08 +08:00
|
|
|
index 13a7d826..5e96f49c 100644
|
2021-09-28 08:51:07 +08:00
|
|
|
--- a/apps/mosquitto_passwd/CMakeLists.txt
|
|
|
|
+++ b/apps/mosquitto_passwd/CMakeLists.txt
|
|
|
|
@@ -13,6 +13,10 @@ if (WITH_TLS)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
- target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES})
|
|
|
|
+ if(WIN32)
|
|
|
|
+ target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES} ws2_32 crypt32)
|
|
|
|
+ else()
|
|
|
|
+ target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES})
|
|
|
|
+ endif()
|
|
|
|
install(TARGETS mosquitto_passwd RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
|
|
endif (WITH_TLS)
|
2020-09-25 06:15:06 +08:00
|
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2022-04-22 05:33:08 +08:00
|
|
|
index 31cc35e3..a1a3e01a 100644
|
2020-09-25 06:15:06 +08:00
|
|
|
--- a/lib/CMakeLists.txt
|
|
|
|
+++ b/lib/CMakeLists.txt
|
2021-09-28 08:51:07 +08:00
|
|
|
@@ -69,7 +69,7 @@ if (UNIX AND NOT APPLE AND NOT ANDROID)
|
|
|
|
endif (UNIX AND NOT APPLE AND NOT ANDROID)
|
2020-09-25 06:15:06 +08:00
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
- set (LIBRARIES ${LIBRARIES} ws2_32)
|
|
|
|
+ set (LIBRARIES ${LIBRARIES} ws2_32 crypt32)
|
|
|
|
endif (WIN32)
|
|
|
|
|
|
|
|
if (WITH_SRV)
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2021-09-28 08:51:07 +08:00
|
|
|
index 9380a046..62ce99e5 100644
|
2020-09-25 06:15:06 +08:00
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2021-09-28 08:51:07 +08:00
|
|
|
@@ -189,7 +189,7 @@ if (UNIX)
|
2020-09-25 06:15:06 +08:00
|
|
|
endif (UNIX)
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
- set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32)
|
|
|
|
+ set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32 crypt32)
|
|
|
|
endif (WIN32)
|
|
|
|
|
|
|
|
if (WITH_WEBSOCKETS)
|