summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-04-29 22:24:07 +0000
committerStephen D. Huston <shuston@apache.org>2009-04-29 22:24:07 +0000
commit075ae6414416a49fed6dcc3708fdb9e632e4fd4c (patch)
treef40ad830d5757e91310fcd4f5caf55a63d96ec03 /cpp/src
parentbf70c3a435b5198e48cd83f692796bd47e253df1 (diff)
downloadqpid-python-075ae6414416a49fed6dcc3708fdb9e632e4fd4c.tar.gz
Fix locating of LIBCPG; removed deleted WriteEstimate.cpp, .h files
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@769971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/cluster.cmake11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpp/src/cluster.cmake b/cpp/src/cluster.cmake
index 5788ff5ea1..9b357d3297 100644
--- a/cpp/src/cluster.cmake
+++ b/cpp/src/cluster.cmake
@@ -34,13 +34,12 @@ endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
option(BUILD_CPG "Build with CPG support for clustering" ${cluster_default})
if (BUILD_CPG)
- find_library(LIBCPG cpg /usr/lib/openais /usr/lib64/openais /usr/lib/corosync /usr/lib64/corosync)
- CHECK_LIBRARY_EXISTS (${LIBCPG} cpg_local_get "" HAVE_LIBCPG)
+ FIND_LIBRARY(LIBCPG cpg /usr/lib/openais /usr/lib64/openais /usr/lib/corosync /usr/lib64/corosync)
+ if (LIBCPG MATCHES ".*-NOTFOUND$")
+ message(FATAL_ERROR "cpg library not found, install openais-devel or corosync-devel")
+ endif (LIBCPG MATCHES ".*-NOTFOUND$")
CHECK_INCLUDE_FILES (openais/cpg.h HAVE_OPENAIS_CPG_H)
CHECK_INCLUDE_FILES (corosync/cpg.h HAVE_COROSYNC_CPG_H)
- if (NOT HAVE_LIBCPG)
- message(FATAL_ERROR "libcpg not found, install openais-devel or corosync-devel")
- endif (NOT HAVE_LIBCPG)
if (NOT HAVE_OPENAIS_CPG_H AND NOT HAVE_COROSYNC_CPG_H)
message(FATAL_ERROR "cpg.h not found, install openais-devel or corosync-devel")
endif (NOT HAVE_OPENAIS_CPG_H AND NOT HAVE_COROSYNC_CPG_H)
@@ -102,8 +101,6 @@ if (BUILD_CPG)
qpid/cluster/PollerDispatch.h
qpid/cluster/ProxyInputHandler.h
qpid/cluster/Quorum.h
- qpid/cluster/WriteEstimate.cpp
- qpid/cluster/WriteEstimate.h
qpid/cluster/types.h
)