Doc: Address QT_DEPLOY_LIBEXEC_DIR issues from API review
Task-number: QTBUG-121708 Change-Id: I25a05fc26e9950a8b84770347dbcea1912832990 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit b8a78054cf540f082766b1a4d76e42426c1edff9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
0869134212
commit
101846afa9
@ -104,15 +104,14 @@ should not be used for that scenario.
|
|||||||
|
|
||||||
\include cmake-deploy-var-usage.qdocinc
|
\include cmake-deploy-var-usage.qdocinc
|
||||||
|
|
||||||
\cmakevariablesince 6.8
|
\cmakevariablesince 6.7
|
||||||
|
|
||||||
Projects should use \c QT_DEPLOY_LIBEXEC_DIR in their deploy scripts to avoid
|
On Unix derivatives, projects should use \c QT_DEPLOY_LIBEXEC_DIR in their
|
||||||
hard-coding a particular directory in which to deploy the following types of
|
deploy scripts to avoid hard-coding a particular directory in which to deploy
|
||||||
binaries:
|
helper executables that are local to the project.
|
||||||
|
|
||||||
\list
|
For example, projects using QtWebEngine would deploy the \c QtWebEngineProcess
|
||||||
\li Helper executables that are local to the project on Unix derivatives.
|
executable to this directory.
|
||||||
\endlist
|
|
||||||
|
|
||||||
\c QT_DEPLOY_LIBEXEC_DIR defaults to the value of \c${CMAKE_INSTALL_LIBEXECDIR}
|
\c QT_DEPLOY_LIBEXEC_DIR defaults to the value of \c${CMAKE_INSTALL_LIBEXECDIR}
|
||||||
(usually \c{libexec}), which is provided by CMake's \l{GNUInstallDirs} module.
|
(usually \c{libexec}), which is provided by CMake's \l{GNUInstallDirs} module.
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
cmake_minimum_required(VERSION 3.16...3.22)
|
cmake_minimum_required(VERSION 3.16...3.22)
|
||||||
project(MyThings)
|
project(MyThings)
|
||||||
|
|
||||||
|
# The following CMAKE_INSTALL_*DIR variables are used to initialize their
|
||||||
|
# QT_DEPLOY_*_DIR counterparts.
|
||||||
set(CMAKE_INSTALL_BINDIR "mybindir")
|
set(CMAKE_INSTALL_BINDIR "mybindir")
|
||||||
set(CMAKE_INSTALL_LIBDIR "mylibdir")
|
set(CMAKE_INSTALL_LIBDIR "mylibdir")
|
||||||
set(CMAKE_INSTALL_LIBEXECDIR "mylibexecdir")
|
set(CMAKE_INSTALL_LIBEXECDIR "mylibexecdir")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user