diff options
author | Eduard Egorov <egorov3758@gmail.com> | 2018-03-23 13:18:11 +0300 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2018-03-28 14:16:41 -0700 |
commit | f45fa47f3c4c50f2a37130c959be122b08670a00 (patch) | |
tree | 61b8bb4ef2d1588f0bed375ea6b57a6eb791fa77 | |
parent | a63f47e6f1cc1c4a65106fbadcbf3fa66e9ee489 (diff) | |
download | rabbitmq-c-f45fa47f3c4c50f2a37130c959be122b08670a00.tar.gz |
examples: fix building against static librabbitmq.
-rw-r--r-- | examples/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index f49bc7a..4ea8e93 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,3 +1,7 @@ +if (NOT BUILD_SHARED_LIBS) + add_definitions(-DAMQP_STATIC) +endif() + include_directories(${LIBRABBITMQ_INCLUDE_DIRS}) if (WIN32) |