From ff1431771fd92c25ab3d31ee7e46df67e01baabc Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 13 Dec 2024 15:50:37 +0100 Subject: [PATCH] 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 --- cmake/FindWrapProtoc.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindWrapProtoc.cmake b/cmake/FindWrapProtoc.cmake index 54b0b88f..6f9c3de7 100644 --- a/cmake/FindWrapProtoc.cmake +++ b/cmake/FindWrapProtoc.cmake @@ -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)