summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/finddb.cmake
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2013-01-10 20:57:50 +0000
committerCharles E. Rolke <chug@apache.org>2013-01-10 20:57:50 +0000
commit18c61825e6e23b0b48972028670178b48d1b5f8b (patch)
tree289963806b2e58c26bd42acbda96f0e4e9fb14de /qpid/cpp/src/finddb.cmake
parentae68a3eb895428cc564868c6c6a8e4e1b9464baa (diff)
downloadqpid-python-18c61825e6e23b0b48972028670178b48d1b5f8b.tar.gz
QPID-1726 ASF licensed QPID store - reenable in build
Add new legacystore.cmake to EXTRA_DIST in makefile suite. Fix cmake scripts for core library and tests. Note: Tests are not truly integrated. Four standalone unit tests are starters for proving functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1431635 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/finddb.cmake')
-rw-r--r--qpid/cpp/src/finddb.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/src/finddb.cmake b/qpid/cpp/src/finddb.cmake
index 6b1fbac051..fad827cffe 100644
--- a/qpid/cpp/src/finddb.cmake
+++ b/qpid/cpp/src/finddb.cmake
@@ -18,6 +18,7 @@
#
#
+if(UNIX)
# - Find BerkeleyDB
# Find the BerkeleyDB includes and library
# This module defines
@@ -44,7 +45,7 @@ IF (DB_LIBRARY AND DB_INCLUDE_DIR)
SET(DB_LIBRARIES ${DB_LIBRARY})
SET(DB_FOUND "YES")
ELSE (DB_LIBRARY AND DB_INCLUDE_DIR)
- SET(DB_FOUND "NO")
+ UNSET( DB_FOUND )
ENDIF (DB_LIBRARY AND DB_INCLUDE_DIR)
@@ -66,3 +67,8 @@ MARK_AS_ADVANCED(
DB_LIBRARY
DB_INCLUDE_DIR
)
+
+else(UNIX)
+ MESSAGE(STATUS "BerkeleyDB is ignored on non-Unix platforms")
+ UNSET( DB_FOUND )
+endif(UNIX) \ No newline at end of file