mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Provisioning: Fix Protobuf installation for Ubuntu 22.04
Cmake environment variable need to be read from .bash_profile (or .bashrc) instead of .profile with Ubuntu 22.04 Change-Id: Ic0589666e48946ba05366304407a0e5824b27a2c Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Copyright (C) 2022 The Qt Company Ltd.
|
||||
## Contact: https://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -46,7 +46,11 @@ source "${BASH_SOURCE%/*}/SetEnvVar.sh"
|
||||
|
||||
# Extract cmake path from the environment
|
||||
if uname -a |grep -q "Ubuntu"; then
|
||||
source ~/.profile
|
||||
if lsb_release -a |grep "Ubuntu 22.04"; then
|
||||
source ~/.bash_profile
|
||||
else
|
||||
source ~/.profile
|
||||
fi
|
||||
else
|
||||
source ~/.bashrc
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user