summaryrefslogtreecommitdiff
path: root/librabbitmq/CMakeLists.txt
diff options
context:
space:
mode:
authorAlan Antonuk <aega@med.umich.edu>2012-05-17 10:48:16 -0400
committerAlan Antonuk <aega@med.umich.edu>2012-05-17 10:59:19 -0400
commit538a22cd83807fbcd71ac54b06214ce13ebe2f5c (patch)
tree668fac53e1cfe39cfc103cb40a5dcff47a13350d /librabbitmq/CMakeLists.txt
parent317f5015c76e4e7c6403bebbfa3d0dda298f0d97 (diff)
downloadrabbitmq-c-github-ask-538a22cd83807fbcd71ac54b06214ce13ebe2f5c.tar.gz
Adding option to build rabbitmq-c staticallybuild_static_library
Adding option to the CMake build to build rabbitmq-c library as a static library. It is disabled on the WIN32 platform as the amqp.h header has __declspec(dllimport) statements that need to be different when using a static library.
Diffstat (limited to 'librabbitmq/CMakeLists.txt')
-rw-r--r--librabbitmq/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt
index 99804a8..7b1322d 100644
--- a/librabbitmq/CMakeLists.txt
+++ b/librabbitmq/CMakeLists.txt
@@ -79,7 +79,7 @@ set(RABBITMQ_SOURCES
${SOCKET_IMPL}/socket.h ${SOCKET_IMPL}/socket.c
)
-add_library(rabbitmq SHARED ${RABBITMQ_SOURCES})
+add_library(rabbitmq ${RABBITMQ_SOURCES})
if(WIN32)
target_link_libraries(rabbitmq ws2_32)