CMAKE_<LANG>_HOST_COMPILER_ID

在 3.31 版被加入.

This variable is available when <LANG> is CUDA or HIP and CMAKE_<LANG>_COMPILER_ID is NVIDIA. It contains the identity of the host compiler invoked by nvcc, either by default or as specified by CMAKE_<LANG>_HOST_COMPILER, among possibilities documented by CMAKE_<LANG>_COMPILER_ID.

在 4.5 版被加入: This variable is also available when <LANG> is SYCL and CMAKE_<LANG>_COMPILER_ID is AdaptiveCpp. It identifies the underlying host compiler used by the AdaptiveCpp driver.

備註

SYCL support is experimental and gated by CMAKE_EXPERIMENTAL_SYCL.