CMake: Use find_package CONFIG for Boost

This commit is contained in:
Jonas Kvinge 2024-07-14 17:21:37 +02:00
parent 696256eb5b
commit e7b35aeaf7
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ find_package(Backtrace)
if(Backtrace_FOUND) if(Backtrace_FOUND)
set(HAVE_BACKTRACE ON) set(HAVE_BACKTRACE ON)
endif() endif()
find_package(Boost REQUIRED) find_package(Boost CONFIG)
if(NOT Boost_FOUND)
find_package(Boost REQUIRED)
endif()
find_package(ICU COMPONENTS uc i18n REQUIRED) find_package(ICU COMPONENTS uc i18n REQUIRED)
find_package(Protobuf CONFIG) find_package(Protobuf CONFIG)
if(NOT Protobuf_FOUND) if(NOT Protobuf_FOUND)