]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake - Workaround set Boost_component_FOUND
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 12 Dec 2019 15:41:08 +0000 (10:41 -0500)
committerMauricio Faria de Oliveira <mfo@canonical.com>
Mon, 8 Mar 2021 12:36:37 +0000 (09:36 -0300)
BuildBoost.cmake (used when we're building the submodule) doesn't
provide parity with FindBoost.cmake (used with system Boost).
Specifically, it doesn't set the _FOUND variables for the various
components, making it hard to depend on finding those features.

Set Boost_<component>_FOUND for all the components we're building in
BuildBoost.cmake to make using these variables possible.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
(cherry picked from commit 0f4cb207bb4a9905619894286edd41a89379a747)
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
cmake/modules/BuildBoost.cmake

index f99d74a0bcd1b993cc7935998f6c199c4d164a85..eaab331413b26a17b4b96d87d6742ca1451cf41b 100644 (file)
@@ -230,6 +230,7 @@ macro(build_boost version)
         INTERFACE_LINK_LIBRARIES "${dependencies}")
       unset(dependencies)
     endif()
+    set(Boost_${c}_FOUND "TRUE")
   endforeach()
 
   # for header-only libraries