<LANG>_COMPILER_LAUNCHER

在 3.4 版被加入.

This property is implemented only when <LANG> is C, CXX, Fortran, HIP, ISPC, OBJC, OBJCXX, CUDA, or SYCL.

在 4.5 版的變更: Added support for SYCL.

備註

SYCL support is experimental and gated by CMAKE_EXPERIMENTAL_SYCL.

Specify a semicolon-separated list containing a command line for a compiler launching tool. The Makefile 生成器 and the Ninja generator will run this tool and pass the compiler and its arguments to the tool. Some example tools are distcc and ccache.

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

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

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