summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qpid/cpp/src/cluster.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/cluster.cmake b/qpid/cpp/src/cluster.cmake
index d743942fff..48227c1a02 100644
--- a/qpid/cpp/src/cluster.cmake
+++ b/qpid/cpp/src/cluster.cmake
@@ -149,7 +149,9 @@ if (BUILD_CLUSTER)
target_link_libraries (cluster_shared ${LIBCPG} ${CMAN_LIB} qpidbroker qpidclient ${Boost_FILESYSTEM_LIBRARY})
if (CMAKE_COMPILER_IS_GNUCXX)
- set_target_properties(cluster PROPERTIES
+ # Turn off optimisation based on strict-aliasing because we get warnings about violations
+ set_target_properties(cluster cluster_shared PROPERTIES
+ COMPILE_FLAGS "-fno-strict-aliasing"
LINK_FLAGS "-Wl,--no-undefined -pthread")
endif (CMAKE_COMPILER_IS_GNUCXX)