CMake: Use find_package CONFIG for Boost
This commit is contained in:
parent
696256eb5b
commit
e7b35aeaf7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue