CUDA_COMPILER_VERSION

This generator expression belongs to the Compiler Version family. See that section for related generator expressions.

Syntax

$<CUDA_COMPILER_VERSION>

Added in version 3.15.

The version of the CUDA compiler used.

Syntax

$<CUDA_COMPILER_VERSION:version>

Added in version 3.15.

1 if the version of the C++ compiler matches version, otherwise 0.