<LANG>_LINKER_LAUNCHER

在 3.21 版被加入.

This property is implemented only when <LANG> is one of:

  • C

  • CXX

  • CUDA

    在 4.5 版被加入.

  • OBJC

  • OBJCXX

  • Fortran

    在 4.1 版被加入.

  • HIP

    在 4.5 版被加入.

  • SYCL

    在 4.5 版被加入.

    備註

    Experimental. Gated by CMAKE_EXPERIMENTAL_SYCL.

Specify a semicolon-separated list containing a command line for a linker launching tool. The Makefile 生成器 and the Ninja generator will run this tool and pass the linker and its arguments to the tool. This is useful for tools such as static analyzers.

This property is initialized by the value of the CMAKE_<LANG>_LINKER_LAUNCHER variable if it is set when a target is created.

在 3.27 版被加入: The property value may use generator expressions.

The launcher is used only for linking executables, shared libraries, and module libraries. It is not used when creating static libraries.

在 4.5 版被加入: Any wrappers specified by LINK_WRAPPERS and INTERFACE_LINK_WRAPPERS are placed before the launcher command line. See LINK_WRAPPERS for details.