summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Le <[email protected]>2025-01-10 18:28:47 +0100
committerCristian Le <[email protected]>2025-01-23 15:25:48 +0100
commit6a4df2ac243d54f36ad1c1b406803e6caa1be294 (patch)
tree27c078272c7ef011f1a3c456cf04a2e3ca30f198
parenta9964422360c637c7a46f85628a580448bb13bc1 (diff)
Make user tools symlinks relative
Fixes: QTBUG-132724 Pick-to: 6.8 6.9 Change-Id: I0f1d95ef6b66c81e2d12730eae3d5c0452a3a7a1 Reviewed-by: Alexandru Croitor <[email protected]>
-rw-r--r--cmake/QtPostProcessHelpers.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake
index b109b861c40..7f5ea39dd51 100644
--- a/cmake/QtPostProcessHelpers.cmake
+++ b/cmake/QtPostProcessHelpers.cmake
@@ -929,6 +929,7 @@ function(qt_internal_generate_user_facing_tools_info)
if("${INSTALL_PUBLICBINDIR}" STREQUAL "")
return()
endif()
+ qt_path_join(tool_link_base_dir "${CMAKE_INSTALL_PREFIX}" "${INSTALL_PUBLICBINDIR}")
get_property(user_facing_tool_targets GLOBAL PROPERTY QT_USER_FACING_TOOL_TARGETS)
set(lines "")
foreach(target ${user_facing_tool_targets})
@@ -945,6 +946,7 @@ function(qt_internal_generate_user_facing_tools_info)
endif()
qt_path_join(tool_target_path "${CMAKE_INSTALL_PREFIX}" "${INSTALL_BINDIR}" "${filename}")
qt_path_join(tool_link_path "${INSTALL_PUBLICBINDIR}" "${linkname}${PROJECT_VERSION_MAJOR}")
+ _qt_internal_relative_path(tool_target_path BASE_DIRECTORY ${tool_link_base_dir})
list(APPEND lines "${tool_target_path} ${tool_link_path}")
endforeach()
string(REPLACE ";" "\n" content "${lines}")