Added cmake messages to help debug config issues

Also remove uncessary HIFI_QT_INSTALL_ROOT env varaible from hifi_vcpkg.py
This commit is contained in:
Anthony Thibault 2019-05-30 09:22:53 -07:00
parent ddf1543d68
commit 5c982855ab
2 changed files with 3 additions and 4 deletions

View file

@ -54,8 +54,10 @@ macro(setup_qt)
if (NOT DEV_BUILD)
if (UNIX AND DEFINED ENV{QT_CMAKE_PREFIX_PATH})
# HACK: obey QT_CMAKE_PREFIX_PATH to allow UNIX to use older QT libs
message("HACK: obey QT_CMAKE_PREFIX_PATH on UNIX")
set(QT_CMAKE_PREFIX_PATH $ENV{QT_CMAKE_PREFIX_PATH})
else()
message("override QT_CMAKE_PREFIX_PATH with VCPKG_QT_CMAKE_PREFIX_PATH")
set(QT_CMAKE_PREFIX_PATH ${VCPKG_QT_CMAKE_PREFIX_PATH})
endif()
else()

View file

@ -215,10 +215,7 @@ endif()
def getQt5InstallPath(self):
qt5InstallPath = os.path.join(self.path, 'installed', 'qt5-install')
if os.getenv('HIFI_QT_INSTALL_ROOT'):
# Allow qt install path to be overriden by an environment variable
qt5InstallPath = os.getenv('HIFI_QT_INSTALL_ROOT')
elif self.args.android:
if self.args.android:
precompiled = os.path.realpath(self.androidPackagePath)
qt5InstallPath = os.path.realpath(os.path.join(precompiled, 'qt'))
return qt5InstallPath