From 811c995047739191c47de15c2211db682c129486 Mon Sep 17 00:00:00 2001 From: xtex Date: Tue, 20 Aug 2024 18:29:03 +0000 Subject: [PATCH] build: Find boost with name "Boost" (#1840) On many distributions like AOSC OS, Alpine Linux, Arch Linux, etc., boost should be searched with name "Boost". This should fix the packaging issue on AOSC OS. ### Problem description CMake fails to find system boost when `USE_SYSTEM_BOOST` is set to ON. ### Implementation description Find Boost. Signed-off-by: xtex --- cmake/build_helpers.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index dce5eaae1..a3ee0a45a 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -702,8 +702,8 @@ macro(addBundledLibraries) endif() if (USE_SYSTEM_BOOST) - find_package(boost REQUIRED) - set(BOOST_LIBRARIES boost::regex) + find_package(Boost REQUIRED) + set(BOOST_LIBRARIES Boost::regex) else() add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/boost ${CMAKE_CURRENT_BINARY_DIR}/boost EXCLUDE_FROM_ALL) set(BOOST_LIBRARIES boost::regex)