Author: astitcher
Date: Thu Nov  3 14:31:39 2011
New Revision: 1197145

URL: http://svn.apache.org/viewvc?rev=1197145&view=rev
Log:
QPID-3464: Build Improvements (CMake) [inspired by Jan-Marek Glogowski]
- Detect whether uuid library and headers are installed

Modified:
    qpid/trunk/qpid/cpp/src/CMakeLists.txt

Modified: qpid/trunk/qpid/cpp/src/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/CMakeLists.txt?rev=1197145&r1=1197144&r2=1197145&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/CMakeLists.txt (original)
+++ qpid/trunk/qpid/cpp/src/CMakeLists.txt Thu Nov  3 14:31:39 2011
@@ -458,6 +458,14 @@ else (NOT CLOCK_GETTIME_IN_RT)
   set(QPID_HAS_CLOCK_GETTIME YES CACHE BOOL "Platform has clock_gettime")
 endif (NOT CLOCK_GETTIME_IN_RT)
 
+# Ensure that we have uuid library
+CHECK_LIBRARY_EXISTS (uuid uuid_compare "" HAVE_UUID)
+CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H)
+IF (NOT HAVE_UUID AND NOT HAVE_UUID_H)
+  message(FATAL_ERROR "Uuid library and/or header file not found")
+ENDIF (NOT HAVE_UUID AND NOT HAVE_UUID_H)
+
+
 # See if Cyrus SASL is desired and available
 CHECK_LIBRARY_EXISTS (sasl2 sasl_checkpass "" HAVE_SASL)
 CHECK_INCLUDE_FILES (sasl/sasl.h HAVE_SASL_H)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscr...@qpid.apache.org

Reply via email to