Export INSTALL_PUBLICBINDIR
to QtBuildInternalsExtra.cmake
`INSTALL_PUBLICBINDIR` is only exported if it was defined by the user when building QtBase. The conditional check aligns with the one used in `qt_internal_generate_user_facing_tools_info` Fixes: QTBUG-107016 Change-Id: Id5c38555e1d22cb3c16d85261cb052c695b4de03 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit a9964422360c637c7a46f85628a580448bb13bc1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 9db4c36a2f9049b0e1a248af1c03e6246c232876)
This commit is contained in:
parent
555d94cda0
commit
4b6fb23425
@ -202,6 +202,15 @@ macro(qt_internal_setup_configure_install_paths)
|
||||
"Module description files directory")
|
||||
qt_configure_process_path(INSTALL_SBOMDIR "${INSTALL_ARCHDATADIR}/sbom"
|
||||
"SBOM [PREFIX/sbom]")
|
||||
|
||||
# INSTALL_PUBLICBINDIR is processed only if it is not empty
|
||||
# See usage in qt_internal_generate_user_facing_tools_info
|
||||
if(NOT "${INSTALL_PUBLICBINDIR}" STREQUAL "")
|
||||
# A default value is not needed because it is always manually defined
|
||||
# but as per the documentation it is typically `bin`
|
||||
qt_configure_process_path(INSTALL_PUBLICBINDIR "bin"
|
||||
"Symlinked user-facing executables")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(qt_internal_set_cmake_install_libdir)
|
||||
|
@ -584,6 +584,11 @@ function(qt_generate_install_prefixes out_var)
|
||||
INSTALL_PLUGINSDIR INSTALL_LIBEXECDIR INSTALL_QMLDIR INSTALL_DATADIR INSTALL_DOCDIR
|
||||
INSTALL_TRANSLATIONSDIR INSTALL_SYSCONFDIR INSTALL_EXAMPLESDIR INSTALL_TESTSDIR
|
||||
INSTALL_DESCRIPTIONSDIR INSTALL_SBOMDIR)
|
||||
# INSTALL_PUBLICBINDIR is processed only if it is not empty
|
||||
# See usage in qt_internal_generate_user_facing_tools_info
|
||||
if(NOT "${INSTALL_PUBLICBINDIR}" STREQUAL "")
|
||||
list(APPEND vars INSTALL_PUBLICBINDIR)
|
||||
endif()
|
||||
|
||||
foreach(var ${vars})
|
||||
get_property(docstring CACHE "${var}" PROPERTY HELPSTRING)
|
||||
|
Loading…
x
Reference in New Issue
Block a user