diff options
author | Stephen D. Huston <shuston@apache.org> | 2009-10-28 15:57:57 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2009-10-28 15:57:57 +0000 |
commit | 33ad01dc88eece48e439078fb2617c20aa4fe4cc (patch) | |
tree | 146ede4b2be9bbf76c8ab3949832f28195cdb9af /cpp/src | |
parent | 8320f137d402ff89df04c53ff64ac3d6252369a9 (diff) | |
download | qpid-python-33ad01dc88eece48e439078fb2617c20aa4fe4cc.tar.gz |
Adapt to Boost.system only in 1.35 and later
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@830648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/CMakeLists.txt | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index ffb52c7046..88e821ddb4 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -141,10 +141,9 @@ endif (ENABLE_WARNINGS AND CMAKE_COMPILER_IS_GNUCXX) # Expand a bit from the basic Find_Boost; be specific about what's needed. # TODO: Not all these libs are needed everywhere: # Linux only uses filesystem program_options unit_test_framework -# (which itself uses regex); system is only needed indirectly and is included -# in the Windows install package. +# (which itself uses regex). find_package(Boost 1.33 REQUIRED - COMPONENTS filesystem program_options date_time thread system + COMPONENTS filesystem program_options date_time thread regex unit_test_framework) if(NOT Boost_FOUND) message(FATAL_ERROR "Boost C++ libraries not found. Please install or try setting BOOST_ROOT") @@ -202,13 +201,18 @@ if (MSVC) string (REPLACE .lib .dll _boost_regex_release ${Boost_REGEX_LIBRARY_RELEASE}) string (REPLACE .lib .dll - _boost_system_debug ${Boost_SYSTEM_LIBRARY_DEBUG}) - string (REPLACE .lib .dll - _boost_system_release ${Boost_SYSTEM_LIBRARY_RELEASE}) - string (REPLACE .lib .dll _boost_thread_debug ${Boost_THREAD_LIBRARY_DEBUG}) string (REPLACE .lib .dll _boost_thread_release ${Boost_THREAD_LIBRARY_RELEASE}) + # Boost 1.35 added the system library, which gets indirectly linked in + # via other Boost libs. So, if building with Boost 1.35 or later, also + # include system in the Windows install package. + if (NOT Boost_VERSION LESS 103500) + string (REPLACE boost_thread boost_system + _boost_system_debug ${_boost_thread_debug}) + string (REPLACE boost_thread boost_system + _boost_system_release ${_boost_thread_release}) + endif (NOT Boost_VERSION LESS 103500) install (PROGRAMS ${_boost_date_time_debug} ${_boost_date_time_release} ${_boost_filesystem_debug} ${_boost_filesystem_release} |