From: Daniel Gryniewicz Date: Thu, 12 Dec 2019 15:41:08 +0000 (-0500) Subject: CMake - Workaround set Boost_component_FOUND X-Git-Tag: v14.2.22~22^2~5^2~1^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b9fa1b98a1aea2dcabcea68a781cb9f885da20f;p=ceph.git CMake - Workaround set Boost_component_FOUND 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__FOUND for all the components we're building in BuildBoost.cmake to make using these variables possible. Signed-off-by: Daniel Gryniewicz (cherry picked from commit 0f4cb207bb4a9905619894286edd41a89379a747) Signed-off-by: Mauricio Faria de Oliveira --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index f99d74a0bcd1..eaab331413b2 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -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