summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-generator-expressions.7.rst
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-02-16 17:34:28 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-02-16 17:34:28 (GMT)
commit397ee55cd62dcfcbafb4ff62b189a4192e07d1e5 (patch)
tree47b3304aac407847d1afd338949e04358c4ed72f /Help/manual/cmake-generator-expressions.7.rst
parent1e495fdab92b8ce5f2778c0cbc5e0ed55b056b98 (diff)
downloadCMake-397ee55cd62dcfcbafb4ff62b189a4192e07d1e5.zip
CMake-397ee55cd62dcfcbafb4ff62b189a4192e07d1e5.tar.gz
CMake-397ee55cd62dcfcbafb4ff62b189a4192e07d1e5.tar.bz2
genex-LINK_LIBRARY: rename configuration variables
To be more consistent between genex and variables as well as the forecomming LINK_GROUP genex, rename variable *_LINK_USING_<FEATURE>* in *_LINK_LIBRARY_USING_<FEATURE>*
Diffstat (limited to 'Help/manual/cmake-generator-expressions.7.rst')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 7c34671..0e9060d 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -1125,23 +1125,23 @@ Output-Related Expressions
add_library(lib1 STATIC ...)
add_library(lib2 ...)
- target_link_libraries(lib2 PRIVATE $<LINK_LIBRARY:whole_archive,lib1>)
+ target_link_libraries(lib2 PRIVATE "$<LINK_LIBRARY:whole_archive,lib1>")
This specify to use the ``lib1`` target with feature ``whole_archive`` for
linking target ``lib2``. The feature must have be defined by
- :variable:`CMAKE_<LANG>_LINK_USING_<FEATURE>` variable or, if
- :variable:`CMAKE_<LANG>_LINK_USING_<FEATURE>_SUPPORTED` is false,
- by :variable:`CMAKE_LINK_USING_<FEATURE>` variable.
+ :variable:`CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>` variable or, if
+ :variable:`CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED` is false,
+ by :variable:`CMAKE_LINK_LIBRARY_USING_<FEATURE>` variable.
.. note::
The evaluation of this generator expression will use, for the following
variables, the values defined at the level of the creation of the target:
- * :variable:`CMAKE_<LANG>_LINK_USING_<FEATURE>_SUPPORTED`
- * :variable:`CMAKE_<LANG>_LINK_USING_<FEATURE>`
- * :variable:`CMAKE_LINK_USING_<FEATURE>_SUPPORTED`
- * :variable:`CMAKE_LINK_USING_<FEATURE>`
+ * :variable:`CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED`
+ * :variable:`CMAKE_<LANG>_LINK_LIBRARY_USING_<FEATURE>`
+ * :variable:`CMAKE_LINK_LIBRARY_USING_<FEATURE>_SUPPORTED`
+ * :variable:`CMAKE_LINK_LIBRARY_USING_<FEATURE>`
This expression can only be used to specify link libraries (i.e. part of
:command:`link_libraries` or :command:`target_link_libraries` commands and
@@ -1170,7 +1170,7 @@ Output-Related Expressions
add_library(lib1 ...)
add_library(lib2 ...)
- target_link_libraries(lib2 PUBLIC $<LINK_LIBRARY:feature1,lib1>)
+ target_link_libraries(lib2 PUBLIC "$<LINK_LIBRARY:feature1,lib1>")
add_library(lib3 ...)
target_link_libraries(lib3 PRIVATE lib1 lib2)