1CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES
2------------------------------------
3
4Implicit link libraries and flags detected for language ``<LANG>``.
5
6Compilers typically pass language runtime library names and other
7flags when they invoke a linker.  These flags are implicit link
8options for the compiler's language.  For each language enabled
9by the :command:`project` or :command:`enable_language` command,
10CMake automatically detects these libraries and flags and reports
11the results in this variable.
12
13When linking to a static library, CMake adds the implicit link libraries and
14flags from this variable for each language used in the static library (except
15the language whose compiler is used to drive linking).  In the case of an
16imported static library, the :prop_tgt:`IMPORTED_LINK_INTERFACE_LANGUAGES`
17target property lists the languages whose implicit link information is
18needed.  If any of the languages is not enabled, its value for the
19``CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES`` variable may instead be provided
20by the project.  Or, a :variable:`toolchain file <CMAKE_TOOLCHAIN_FILE>`
21may set the variable to a value known for the specified toolchain.  It will
22either be overridden when the language is enabled, or used as a fallback.
23
24See also the :variable:`CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES` variable.
25