diff options
author | Brad King <brad.king@kitware.com> | 2020-12-08 15:19:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-12-08 15:20:11 (GMT) |
commit | 8a3ecb484fb04aa9fb8b9f6d198b3a6942c26115 (patch) | |
tree | c155adee472afeb3d95c57c0c5ab15ad24cc29cc /Help | |
parent | 61cd587ef3dce2019984a8b8ea726f09a0c8c751 (diff) | |
parent | cf0c71dae3009a75e08c91eb5d3138ffd488f7db (diff) | |
download | CMake-8a3ecb484fb04aa9fb8b9f6d198b3a6942c26115.zip CMake-8a3ecb484fb04aa9fb8b9f6d198b3a6942c26115.tar.gz CMake-8a3ecb484fb04aa9fb8b9f6d198b3a6942c26115.tar.bz2 |
Merge topic 'update_cmp112' into release-3.19
cf0c71dae3 Document CMP0112 covers $<TARGET_FILE_NAME,tgt>
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5582
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 3 | ||||
-rw-r--r-- | Help/policy/CMP0112.rst | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index ff9d1bf..482b14e 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -648,6 +648,9 @@ which is just the string ``tgt``. expression is evaluated on. ``$<TARGET_FILE_NAME:tgt>`` The ``tgt`` filename. + + Note that ``tgt`` is not added as a dependency of the target this + expression is evaluated on (see policy :policy:`CMP0112`). ``$<TARGET_FILE_DIR:tgt>`` Directory of the ``tgt`` binary file. diff --git a/Help/policy/CMP0112.rst b/Help/policy/CMP0112.rst index 78a9055..313a51e 100644 --- a/Help/policy/CMP0112.rst +++ b/Help/policy/CMP0112.rst @@ -8,6 +8,7 @@ Target file component generator expressions do not add target dependencies. The following target-based generator expressions that query for directory or file name components no longer add a dependency on the evaluated target. + - ``TARGET_FILE_NAME`` - ``TARGET_FILE_DIR`` - ``TARGET_LINKER_FILE_BASE_NAME`` - ``TARGET_LINKER_FILE_NAME`` |