duhengforever closed pull request #20: Fix example crash error
URL: https://github.com/apache/rocketmq-client-cpp/pull/20
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9bdd510f..74ecb075 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,9 @@
cmake_minimum_required(VERSION 2.8)
+if (APPLE)
+ set(CMAKE_MACOSX_RPATH 1)
+endif (APPLE)
# CMake complains if we don't have this.
if (COMMAND cmake_policy)
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index c6dc4623..c4c24660 100755
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -24,9 +24,9 @@ link_directories(${Boost_LIBRARY_DIRS})
link_directories(${LIBEVENT_LIBRARY})
link_directories(${JSONCPP_LIBRARY})
-if (BUILD_ROCKETMQ_SHARED)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_ALL_DYN_LINK -shared ")
-endif()
+#if (BUILD_ROCKETMQ_SHARED)
+# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBOOST_ALL_DYN_LINK -shared ")
+#endif()
file(GLOB files "*.c*")
foreach(file ${files})
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services