CMake: Specify Prefix in target_qt.conf for non-prefix builds
The EffectivePaths section does not inherit the Prefix value from
the Paths section.
Specfiy it explicitly, otherwise the paths reported by qmake -query
for /get variants ended up containing an extra "./bin/" part, which
ended up breaking building iOS apps with qmake.
Amends d7fd684861
Task-number: QTBUG-85240
Task-number: QTBUG-84781
Task-number: QTBUG-82581
Change-Id: I288a6e76a21d779a7e03443777f8a4ce28df9974
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
parent
868c7016e0
commit
3ac50d2f71
|
|
@ -1403,8 +1403,11 @@ HostData=${CMAKE_CURRENT_SOURCE_DIR}
|
|||
|
||||
# Set $$[QT_HOST_DATA/get] to avoid falling back to the source dir where it isn't explicitly
|
||||
# requested.
|
||||
# Also make sure to specif the Prefix as well, because it doesn't get inherited from the
|
||||
# [Paths] section.
|
||||
string(APPEND content "[EffectivePaths]
|
||||
HostData=${ext_prefix}
|
||||
Prefix=${ext_prefix_relative_to_conf_file}
|
||||
")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue