mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 12:29:07 +08:00
4cbbcbddfd
* [vcpkg ci:osx] Remove brew install * add instructions for creating a new vagrant box * fix the vagrant scripts for the new box * finish fixing the setup * [mecab jxrlib] fix ports for CI mecab needed to use an actual ref that wasn't master, and jxrlib needed a patch for xcode 12 CLTs. Additionally, this fixes the mecab version to be a date, the date of the last commit, since `1.0` is not the correct version (mecab doesn't have released versions) * [many ports] fix compile with Xcode 12 CLTs This mostly means fixing errors on implicit-function-declaration, and removing some Werrors * alac-decoder * apr * argtable2 * arrow * hyperscan * mcpp * minizip * mosquitto * stormlib * [many ports] even more Xcode 12 CLT fixes * [jxrlib darknet] fix the last ports! (hopefully) * CRs, plus minor wip changes to osx scripts
52 lines
1.5 KiB
Diff
52 lines
1.5 KiB
Diff
From 4bb19e77e95bc505d32e098190ffbf056810017c Mon Sep 17 00:00:00 2001
|
|
From: Nicole Mazzuca <mazzucan@outlook.com>
|
|
Date: Tue, 22 Sep 2020 15:44:42 -0700
|
|
Subject: [PATCH 4/5] support static build
|
|
|
|
---
|
|
lib/CMakeLists.txt | 2 +-
|
|
src/CMakeLists.txt | 8 ++++++--
|
|
2 files changed, 7 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
|
index bd60b75..cc01a2a 100644
|
|
--- a/lib/CMakeLists.txt
|
|
+++ b/lib/CMakeLists.txt
|
|
@@ -60,7 +60,7 @@ if (UNIX AND NOT APPLE)
|
|
endif (UNIX AND NOT APPLE)
|
|
|
|
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
|
|
index 7898ff5..f066aea 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -158,7 +158,7 @@ if (UNIX)
|
|
endif (UNIX)
|
|
|
|
if (WIN32)
|
|
- set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32)
|
|
+ set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32 crypt32)
|
|
endif (WIN32)
|
|
|
|
if (WITH_WEBSOCKETS)
|
|
@@ -189,6 +189,10 @@ install(FILES mosquitto_broker.h mosquitto_plugin.h DESTINATION "${CMAKE_INSTALL
|
|
|
|
if (WITH_TLS)
|
|
add_executable(mosquitto_passwd mosquitto_passwd.c)
|
|
- 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)
|
|
--
|
|
2.24.3 (Apple Git-128)
|
|
|