diff options
author | Andrew Stitcher <astitcher@apache.org> | 2011-11-03 14:31:39 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2011-11-03 14:31:39 +0000 |
commit | 596792273ee7d5a694000c291c2d605f976860dd (patch) | |
tree | 9e8b016776b29aa72f2d07d7a58c45ccd76b72fb /cpp/src | |
parent | c32b143f8cfd196a8f85e40c7000e7c0921766a9 (diff) | |
download | qpid-python-596792273ee7d5a694000c291c2d605f976860dd.tar.gz |
QPID-3464: Build Improvements (CMake) [inspired by Jan-Marek Glogowski]
- Detect whether uuid library and headers are installed
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1197145 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 62dce23a42..02db779e1b 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -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) |