https://github.com/Kitware/CMake
Raw File
Tip revision: 66f7d9e6e03f4b38bbd5e456fa32397d809f5bfb authored by Brad King on 12 June 2023, 17:24:29 UTC
CMake 3.27.0-rc2
Tip revision: 66f7d9e
CMAKE_LANG_LINKER_PREFERENCE.rst
CMAKE_<LANG>_LINKER_PREFERENCE
------------------------------

An internal variable subject to change.

Preference value for linker language selection.

The "linker language" for executable, shared library, and module
targets is the language whose compiler will invoke the linker.  The
:prop_tgt:`LINKER_LANGUAGE` target property sets the language explicitly.
Otherwise, the linker language is that whose linker preference value
is highest among languages compiled and linked into the target.  See
also the :variable:`CMAKE_<LANG>_LINKER_PREFERENCE_PROPAGATES` variable.
back to top