summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-11-03 14:32:09 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-11-03 14:32:09 +0000
commit44d6d53f5a6e505d764a77ac5fc7b6cae546ce39 (patch)
treebb56c0fc978a022ae37544a34b24583a175dec22 /cpp/src
parentd057421fbd5695e6ed133c1d271025dc57ab43f5 (diff)
downloadqpid-python-44d6d53f5a6e505d764a77ac5fc7b6cae546ce39.tar.gz
QPID-3464: Build Improvements (CMake) [inspired by Jan-Marek Glogowski]
- Turn off optimisations based on strict aliasing analysis for cluster code as we seem to be violating the strict aliasing rules there git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1197147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/cluster.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/cluster.cmake b/cpp/src/cluster.cmake
index d743942fff..48227c1a02 100644
--- a/cpp/src/cluster.cmake
+++ b/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)