CMAKE_<LANG>_USING_LINKER_MODE
Deprecated since version 4.0: This variable is no longer used. The type of information stored in the CMAKE_<LANG>_USING_LINKER_<TYPE> variable is determined by the CMAKE_<LANG>_LINK_MODE variable.
Added in version 3.29.
This variable controls how the value of the CMAKE_<LANG>_USING_LINKER_<TYPE> variable should be interpreted. The supported linker mode values are:
-
FLAG -
CMAKE_<LANG>_USING_LINKER_<TYPE>holds a semicolon-separated list of flags to be passed to the compiler frontend. This is also the default behavior ifCMAKE_<LANG>_USING_LINKER_MODEis not set. -
TOOL -
CMAKE_<LANG>_USING_LINKER_<TYPE>holds the path to the linker tool.
Warning
The variable must be set accordingly to how CMake manage the link step:
- value
TOOLis expected and required when the linker is used directly for the link step. - value
FLAGis expected or the variable not set when the compiler is used as driver for the link step.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_USING_LINKER_MODE.html