summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/PkgConfigLibrary.pc.in2
-rw-r--r--cmake/QtPkgConfigHelpers.cmake3
2 files changed, 1 insertions, 4 deletions
diff --git a/cmake/PkgConfigLibrary.pc.in b/cmake/PkgConfigLibrary.pc.in
index 5a6665c85c5..b840e79e794 100644
--- a/cmake/PkgConfigLibrary.pc.in
+++ b/cmake/PkgConfigLibrary.pc.in
@@ -1,4 +1,4 @@
-prefix=${pcfiledir}/@relative_install_prefix@
+prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
bindir=${prefix}/@INSTALL_BINDIR@
libexecdir=${prefix}/@INSTALL_LIBEXECDIR@
diff --git a/cmake/QtPkgConfigHelpers.cmake b/cmake/QtPkgConfigHelpers.cmake
index a0eff0d6a2c..2790498bf2c 100644
--- a/cmake/QtPkgConfigHelpers.cmake
+++ b/cmake/QtPkgConfigHelpers.cmake
@@ -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}")