1
0
mirror of synced 2024-11-24 07:40:17 +01:00

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 <xtexchooser@duck.com>
This commit is contained in:
xtex 2024-08-20 18:29:03 +00:00 committed by GitHub
parent 7011df2ced
commit 811c995047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)