mirror of https://github.com/qt/qtgrpc.git
Tune the WrapProtoc lookup
Add the upper and lower case protobuf package names explicitly and keep the protobuf package lower case for the variables consistency. Pick-to: 6.9 Change-Id: Id8acf1d986e0274f99587d554e5dc5308f15a31d Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
d288a077f5
commit
ff1431771f
|
|
@ -27,7 +27,7 @@ if(NOT CMAKE_CROSSCOMPILING)
|
|||
# gives this possibility.
|
||||
set(__WrapProtoc_CMAKE_FIND_PACKAGE_PREFER_CONFIG_save ${CMAKE_FIND_PACKAGE_PREFER_CONFIG})
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||
find_package(Protobuf ${WrapProtoc_FIND_VERSION} ${__WrapProtoc_find_package_args})
|
||||
find_package(protobuf ${WrapProtoc_FIND_VERSION} NAMES protobuf Protobuf ${__WrapProtoc_find_package_args})
|
||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ${__WrapProtoc_CMAKE_FIND_PACKAGE_PREFER_CONFIG_save})
|
||||
unset(__WrapProtoc_CMAKE_FIND_PACKAGE_PREFER_CONFIG_save)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue