diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 1e5f1ec8e..4d7e8391d 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -829,7 +829,7 @@ macro(addBundledLibraries) endif() if (USE_SYSTEM_BOOST) - find_package(Boost REQUIRED) + find_package(Boost REQUIRED CONFIG COMPONENTS regex) set(BOOST_LIBRARIES Boost::regex) else() add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/boost ${CMAKE_CURRENT_BINARY_DIR}/boost EXCLUDE_FROM_ALL)