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_<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>
This commit is contained in:
Daniel Gryniewicz 2019-12-12 10:41:08 -05:00 committed by Casey Bodley
parent 4ca4201b7f
commit 0f4cb207bb

View 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