Point to protobuf install prefix but not the CMake dir in protobuf_ROOT

The <Package>_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 6.9
Change-Id: Id8859c29da08144c60ed3d6301d2c65c8d602d1f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev 2025-03-21 10:12:51 +01:00
parent c259d85b8e
commit 9c39ae1424
1 changed files with 1 additions and 1 deletions

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