summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@qt.io>2021-10-07 19:17:40 +1100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-08 04:45:43 +0000
commit07c792327879e28ae8fb3c66054b633faa6848c5 (patch)
treeb6f7b97409d028dafaac0f0ce24eeddbec5c2375
parenteb30108d8722d3b197a361be1fcf81887bf6a5e9 (diff)
downloadqttools-07c792327879e28ae8fb3c66054b633faa6848c5.tar.gz
CMake: Fix incorrect docs for the default output dir of .qm files
In the CMake API, the default output directory when generating .qm files with lrelease is the current build directory, not the top level (root) build directory as currently claimed. Change-Id: I4a8ae04289b331fd19f3e70957b902702195751c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 5a127c9760a3107d8a18839bb2286653b0c290cf) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/linguist/linguist/doc/cmake-macros.qdoc24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/linguist/linguist/doc/cmake-macros.qdoc b/src/linguist/linguist/doc/cmake-macros.qdoc
index 115ef12ce..eafa8b34d 100644
--- a/src/linguist/linguist/doc/cmake-macros.qdoc
+++ b/src/linguist/linguist/doc/cmake-macros.qdoc
@@ -56,12 +56,12 @@ Calls \c{lrelease} on each \c{.ts} file passed as an argument, generating
You can set additional \c{OPTIONS} that should be passed when \c{lrelease} is
invoked. You can find possible options in the \l{lrelease}{lrelease documentation}.
-By default, the \c{qm} files will be placed in the root level of the build
-directory. To change this, you can set \c{OUTPUT_LOCATION} as a property
-of the source \c{.ts} file.
+By default, the \c{qm} files will be placed in the current build directory
+(\c{CMAKE_CURRENT_BINARY_DIR}). To change this, you can set \c{OUTPUT_LOCATION}
+as a property of the source \c{.ts} file.
For example, with the following code, the \c{.qm} files are generated
-in a \c{translations} directory below the build directory.
+in a \c{translations} directory below the current build directory.
\snippet cmake-macros/examples.cmake set_output_location_on_ts_file
@@ -243,12 +243,12 @@ You can set additional \c{OPTIONS} that should be passed when \c{lrelease} is
invoked. You can find possible options in the \l{lrelease}{lrelease
documentation}.
-By default, the \c{.qm} files will be placed in the root level of the build
-directory. To change this, you can set \c{OUTPUT_LOCATION} as a property
-of the source \c{.ts} file.
+By default, the \c{.qm} files will be placed in the current build directory
+(\c{CMAKE_CURRENT_BINARY_DIR}). To change this, you can set \c{OUTPUT_LOCATION}
+as a property of the source \c{.ts} file.
For example, with the following code, the \c{.qm} files are generated
-in a \c{translations} directory below the build directory.
+in a \c{translations} directory below the current build directory.
\snippet cmake-macros/examples.cmake set_output_location_on_ts_file
@@ -335,12 +335,12 @@ You can set additional options for \l{lupdate} and \l{lrelease} with
\c{LUPDATE_OPTIONS} and \c{LRELEASE_OPTIONS}. You can find possible options in
the \l{translations}{translations documentation}.
-By default, the \c{.qm} files will be placed in the root level of the build
-directory. To change this, you can set \c{OUTPUT_LOCATION} as a property
-of the source \c{.ts} file.
+By default, the \c{.qm} files will be placed in the current build directory
+(\c{CMAKE_CURRENT_BINARY_DIR}). To change this, you can set \c{OUTPUT_LOCATION}
+as a property of the source \c{.ts} file.
For example, with the following code, the \c{.qm} files are generated
-in a \c{translations} directory below the build directory.
+in a \c{translations} directory below the current build directory.
\snippet cmake-macros/examples.cmake set_output_location_on_ts_file