Help: Mention CMAKE_<LANG>_LINK_FLAGS where relevant

Also, correct the documentation added in commit 98f9874703 (cmake:
Add per-language link flags for all target types, 2025-12-17) by
placing the variables in the proper section of cmake-variables(7).

Issue: #21934
This commit is contained in:
Tyler Yankee
2026-04-07 09:16:32 -04:00
parent 314e9790cf
commit c8b6725977
4 changed files with 22 additions and 5 deletions

View File

@@ -42,3 +42,8 @@ See Also
* :variable:`CMAKE_<LANG>_FLAGS` and :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>`
add language-wide flags passed to all invocations of the compiler.
This includes invocations that drive compiling and those that drive linking.
* .. versionadded:: 4.3
:variable:`CMAKE_<LANG>_LINK_FLAGS` and
:variable:`CMAKE_<LANG>_LINK_FLAGS_<CONFIG>` add language-wide flags passed
to all invocations of the compiler which drive linking.

View File

@@ -67,5 +67,10 @@ See Also
add language-wide flags passed to all invocations of the compiler.
This includes invocations that drive compiling and those that drive linking.
* .. versionadded:: 4.3
:variable:`CMAKE_<LANG>_LINK_FLAGS` and
:variable:`CMAKE_<LANG>_LINK_FLAGS_<CONFIG>` add language-wide flags passed
to all invocations of the compiler which drive linking.
* The :module:`CheckLinkerFlag` module to check whether a linker flag is
supported by the compiler.