mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 06:49:05 +08:00
ebb2d1a44f
* [amqpcpp] Add new port * Force static linkage for amqpcpp The documentation for this library says that shared linkage on Windows is unsupported. Furthermore, the build currently errors out on Windows because shared DLLs are not placed correctly. vcpkg only supports static linkage on Linux and macOS, so I'm categorically making amqpcpp build with static linkage on all platforms. This unifies the platforms and gives consistent behavior
17 lines
483 B
Diff
17 lines
483 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 645bb32..3ef5c4b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -89,6 +89,11 @@ else()
|
|
add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP})
|
|
endif()
|
|
|
|
+if(AMQP-CPP_LINUX_TCP)
|
|
+ find_path(OPENSSL_INCLUDE_DIR openssl/ssl.h)
|
|
+ include_directories(${OPENSSL_INCLUDE_DIR})
|
|
+endif()
|
|
+
|
|
# install rules
|
|
# ------------------------------------------------------------------------------------------------------
|
|
|