]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Adapt for ceph-manager
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 26 Oct 2016 21:36:22 +0000 (17:36 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Mon, 7 Nov 2016 20:57:02 +0000 (15:57 -0500)
The ceph manager change added a separate Boost dependency
check, add it to the combined section.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
CMakeLists.txt

index 20fa46aa196c32b4eaad5c0115692fe52ada8bde..5d6323d94b0a63ea225ca91c4846e4cca312f6a0 100644 (file)
@@ -338,7 +338,7 @@ option(WITH_MGR "ceph-mgr is enabled" ON)
 if(WITH_MGR)
     set(Python_ADDITIONAL_VERSIONS 2.7)
     find_package(PythonLibs 2.7 REQUIRED)
-    find_package(Boost COMPONENTS python REQUIRED)
+    # Boost dependency check deferred to Boost section
 endif(WITH_MGR)
 
 option(WITH_THREAD_SAFE_RES_QUERY "res_query is thread safe" OFF)
@@ -420,7 +420,7 @@ else()
   set(Boost_USE_STATIC_LIBS ON)
   execute_process(COMMAND "./bootstrap.sh"
     "--prefix=${BOOST_PREFIX}"
-    "--with-libraries=atomic,container,context,coroutine,coroutine2,date_time,filesystem,iostreams,program_options,random,regex,system,thread"
+    "--with-libraries=atomic,container,context,coroutine,coroutine2,date_time,filesystem,iostreams,program_options,python,random,regex,system,thread"
     WORKING_DIRECTORY ${BOOST_SOURCE_DIR})
   # 2. install headers
   set(BOOST_ROOT "${BOOST_PREFIX}")
@@ -448,10 +448,18 @@ else()
   # 4. set hints for FindBoost.cmake
   set(Boost_NO_SYSTEM_PATHS ON)
   include_directories(BEFORE ${BOOST_PREFIX}/include)
+  # fixup for CheckIncludeFileCXX
+  set(HAVE_BOOST_ASIO_COROUTINE ON)
 endif()
 
 set(Boost_USE_MULTITHREADED ON)
 
+set(BOOST_COMPONENTS
+       thread system regex random program_options date_time iostreams)
+if(WITH_MGR)
+       list(APPEND BOOST_COMPONENTS python)
+endif()
+
 # require minimally the bundled version
 find_package(Boost 1.61 COMPONENTS thread system regex random program_options date_time iostreams REQUIRED)
 include_directories(${Boost_INCLUDE_DIRS})