Skip to content

Commit d9cdaf2

Browse files
authored
Fix build with Boost 1.89.0 (#1038)
1 parent 76789c8 commit d9cdaf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ set(Boost_DETAILED_FAILURE_MSG ON)
844844
# Boost.System is a library that, in essence, defines four classes to identify errors. All four classes were added to the standard library with C++11. If your development environment supports C++11, you don’t need to use Boost.System. However, since many Boost libraries use Boost.System, you might encounter Boost.System through those other libraries.
845845
# Boost.System is a library that, in essence, defines four classes to identify errors. All four classes were added to the standard library with C++11. If your development environment supports C++11, you don’t need to use Boost.System. However, since many Boost libraries use Boost.System, you might encounter Boost.System through those other libraries.
846846
# TODO: we may not need system at all
847-
find_package(Boost COMPONENTS serialization thread regex program_options system REQUIRED ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
847+
find_package(Boost COMPONENTS serialization thread regex program_options OPTIONAL_COMPONENTS system REQUIRED ${DISABLE_DEFAULT_PATH_SEARCH_VAR})
848848

849849
if(Boost_FOUND)
850850
message(STATUS "Found Boost: ${Boost_LIBRARIES} ${Boost_INCLUDE_DIRS}")

0 commit comments

Comments
 (0)