From 411a34af24f35df7d78117b76a097f7c814f6798 Mon Sep 17 00:00:00 2001 From: Mikael Sundell Date: Thu, 24 Aug 2023 09:25:45 +0200 Subject: [PATCH] Added check for Boost_NO_BOOST_CMAKE, ignore if already set Signed-off-by: Mikael Sundell --- src/cmake/externalpackages.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cmake/externalpackages.cmake b/src/cmake/externalpackages.cmake index 56be887dcf..120b0bf0ef 100644 --- a/src/cmake/externalpackages.cmake +++ b/src/cmake/externalpackages.cmake @@ -61,7 +61,10 @@ message (STATUS "Boost_COMPONENTS = ${Boost_COMPONENTS}") # cmake output (e.g. boost 1.70.0, cmake <= 3.14). Specifically it fails # to set the expected variables printed below. So until that's fixed # force FindBoost.cmake to use the original brute force path. -set (Boost_NO_BOOST_CMAKE ON) +if (NOT DEFINED Boost_NO_BOOST_CMAKE) + set (Boost_NO_BOOST_CMAKE ON) +endif () + checked_find_package (Boost REQUIRED VERSION_MIN 1.53 COMPONENTS ${Boost_COMPONENTS}