Revert "CMake: Make generated pkgconfig files relocatable"
This reverts commit 731d9a13956ef40e3f563f5ff5ff5c250b8d6d94. Reason for revert: ${pcfiledir} cannot be used, because this leads to wrong prefix values if PKG_CONFIG_SYSROOT_DIR is set. See the comments of the associated task for instances of this problem in other projects. Pick-to: 6.8 6.9 Task-number: QTBUG-136210 Change-Id: I2a60946828f07866b931dacfe0ef81346f1aac9d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
fbc6b0c6e6
commit
286e309373
@ -1,4 +1,4 @@
|
||||
prefix=${pcfiledir}/@relative_install_prefix@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
bindir=${prefix}/@INSTALL_BINDIR@
|
||||
libexecdir=${prefix}/@INSTALL_LIBEXECDIR@
|
||||
|
@ -125,9 +125,6 @@ function(qt_internal_generate_pkg_config_file module)
|
||||
qt_path_join(pc_step1_path "${build_dir}" ${step_prefix}_step1.pc)
|
||||
qt_path_join(pc_step2_path "${build_dir}" ${step_prefix}_$<CONFIG>_step2.pc)
|
||||
|
||||
file(RELATIVE_PATH relative_install_prefix "/${path_suffix}" "/foo")
|
||||
get_filename_component(relative_install_prefix "${relative_install_prefix}" DIRECTORY)
|
||||
|
||||
configure_file("${template_pc}" "${pc_step1_path}" @ONLY)
|
||||
|
||||
file(GENERATE OUTPUT "${pc_step2_path}" INPUT "${pc_step1_path}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user