]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake - Workaround set Boost_component_FOUND 31580/head
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 12 Dec 2019 15:41:08 +0000 (10:41 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 8 Jan 2020 16:31:04 +0000 (11:31 -0500)
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>
cmake/modules/BuildBoost.cmake

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