Update Protobuf ROOT env variable match package name

find_package looks for PackageName_ROOT and the package is now
named 'protobuf'.

Fixes: QTBUG-132901
Pick-to: 6.9
Change-Id: Ifb956e4ab52c3df059d2624eb989c97473a662a2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexey Edelev
2025-01-17 17:46:30 +01:00
committed by Tor Arne Vestbø
parent ac2b15075c
commit b2e1673d99

View File

@@ -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/lib/cmake/protobuf"
# Refresh shared library cache if OS isn't macOS
if uname -a |grep -qv "Darwin"; then