From 0f4cb207bb4a9905619894286edd41a89379a747 Mon Sep 17 00:00:00 2001 From: Daniel Gryniewicz Date: Thu, 12 Dec 2019 10:41:08 -0500 Subject: [PATCH] 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 --- cmake/modules/BuildBoost.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 51c20d68982f0..2e92132366c6c 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -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 -- 2.39.5