Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0.0
-
None
-
-
e6527e2f73663205a0f36feac5a7feda47fba152 (qt/qtbase/dev) 8e5f2252ccb8a5080ad95967f19d8d4f8e6e6701 (qt/qtbase/6.1)
Description
How to reproduce
- install Qt with the installer
- qt-configure-module some other Qt module (qtsvg for example) with that installed Qt
What happens
CMAKE_INSTALL_PREFIX is set to /Users/qt/work/install which is the install prefix on the packaging machine
What should happen
CMAKE_INSTALL_PREFIX should be the actual installation location of Qt.
Notes
This happens, because QtBuildInternalsExtras.cmake contains the hard-coded value /Users/qt/work/install:
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT QT_BUILD_INTERNALS_NO_FORCE_SET_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" CACHE PATH "Install path prefix, prepended onto install directories." FORCE) endif()
possible solution is
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT QT_BUILD_INTERNALS_NO_FORCE_SET_INSTALL_PREFIX) set(CMAKE_INSTALL_PREFIX "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}" CACHE PATH "Install path prefix, prepended onto install directories." FORCE) endif()
but we need to double-check all implications.
Attachments
Issue Links
- is duplicated by
-
QTBUG-88034 qt-cmake-private installs to COIN installation path instead of local installation path
- Closed
-
QTBUG-92542 using qt-configure-module script fails to install qt module
- Closed
- is required for
-
QTBUG-91475 Unable to build documentation with 6.1.0 from online installer
- Closed
- resulted from
-
QTBUG-90402 Building Qt3D with Qt 6.0.1 fails at headersclean
- Closed
For Gerrit Dashboard: QTBUG-90449 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
337058,3 | Fix CMAKE_INSTALL_PREFIX when building against installer-provided Qt | dev | qt/qtbase | Status: MERGED | +2 | 0 |
338460,2 | Fix CMAKE_INSTALL_PREFIX when building against installer-provided Qt | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |