From 46c1dedc0c158438e7d08a554764669016415087 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 21 Mar 2025 10:12:51 +0100 Subject: [PATCH] Point to protobuf install prefix but not the CMake dir in protobuf_ROOT The _ROOT should point to the package prefix, where CMake should look for the respective cmake/, lib/cmake, and other CMake package directories. Setting directly it to package path is incorrect. Pick-to: 6.8 Change-Id: Id8859c29da08144c60ed3d6301d2c65c8d602d1f Reviewed-by: Joerg Bornemann (cherry picked from commit 9c39ae1424c4fb298678d70b0333cebcfb125779) Reviewed-by: Qt Cherry-pick Bot --- coin/provisioning/common/unix/install_protobuf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coin/provisioning/common/unix/install_protobuf.sh b/coin/provisioning/common/unix/install_protobuf.sh index 9bb31c1f..1f4ee37a 100755 --- a/coin/provisioning/common/unix/install_protobuf.sh +++ b/coin/provisioning/common/unix/install_protobuf.sh @@ -92,7 +92,7 @@ cmake "$targetDir" -G"Ninja Multi-Config" \ ninja all:all sudo env "PATH=$PATH" ninja install:all -SetEnvVar "protobuf_ROOT" "$installPrefix/lib/cmake/protobuf" +SetEnvVar "protobuf_ROOT" "$installPrefix" # Refresh shared library cache if OS isn't macOS if uname -a |grep -qv "Darwin"; then