diff options
| author | Stephen D. Huston <shuston@apache.org> | 2009-12-15 17:40:07 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2009-12-15 17:40:07 +0000 |
| commit | 631669149ac891c8551040185326f58fbbc2a3cf (patch) | |
| tree | 46551431e9655b63d135e20983ddc7304a9740c4 /qpid/cpp | |
| parent | 4d72569d1dcf7d0d421f66d19b4242c3596656bb (diff) | |
| download | qpid-python-631669149ac891c8551040185326f58fbbc2a3cf.tar.gz | |
Fix the check for boost system; prev one broke Windows config. Instead of trying to find_library, run the Find_Boost again for just the system component when needed. Resolving QPID-2202.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@890900 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/CMakeLists.txt b/qpid/cpp/src/CMakeLists.txt index 8de4e01e6e..b7d96ba273 100644 --- a/qpid/cpp/src/CMakeLists.txt +++ b/qpid/cpp/src/CMakeLists.txt @@ -166,10 +166,11 @@ endif(NOT Boost_FOUND) # Boost.system was introduced at Boost 1.35; it's needed secondarily by other # Boost libs Qpid needs, so be sure it's there. if (NOT Boost_VERSION LESS 103500) - find_library(Boost_SYSTEM_LIBRARY boost_system ${Boost_LIBRARY_DIRS}) + find_package(Boost COMPONENTS system) if (NOT Boost_SYSTEM_LIBRARY) - message(FATAL_ERROR "Boost.system library not found. Please install or try setting BOOST_ROOT") + set(Boost_SYSTEM_LIBRARY boost_system) endif (NOT Boost_SYSTEM_LIBRARY) + endif (NOT Boost_VERSION LESS 103500) # Versions of cmake pre 2.6 don't set the Boost_*_LIBRARY variables correctly |
