Linking: Add CMAKE_LANG_STANDARD_LINK_DIRECTORIES

Closes: #18222
This commit is contained in:
Vito Gamberini
2024-08-07 14:17:18 -04:00
parent 041a482079
commit 20e9b59d5e
20 changed files with 120 additions and 10 deletions
+1
View File
@@ -654,6 +654,7 @@ Variables for Languages
/variable/CMAKE_LANG_STANDARD_INCLUDE_DIRECTORIES
/variable/CMAKE_LANG_STANDARD_LATEST
/variable/CMAKE_LANG_STANDARD_LIBRARIES
/variable/CMAKE_LANG_STANDARD_LINK_DIRECTORIES
/variable/CMAKE_LANG_STANDARD_REQUIRED
/variable/CMAKE_OBJC_EXTENSIONS
/variable/CMAKE_OBJC_STANDARD
@@ -0,0 +1,6 @@
standard-link-directories
-------------------------
* The :variable:`CMAKE_<LANG>_STANDARD_LINK_DIRECTORIES` variable was added.
Toolchain files can set this variable to control which link library directory
paths are always passed to the compiler for the specified language.
@@ -0,0 +1,14 @@
CMAKE_<LANG>_STANDARD_LINK_DIRECTORIES
--------------------------------------
.. versionadded:: 3.31
Link directories specified for every executable and library linked
for language ``<LANG>``. This is meant for specification of system
link directories needed by the language for the current platform.
This variable should not be set by project code. It is meant to be set by
CMake's platform information modules for the current toolchain, or by a
toolchain file when used with :variable:`CMAKE_TOOLCHAIN_FILE`.
See also :variable:`CMAKE_<LANG>_STANDARD_LIBRARIES`.