CUDAFLAGS¶
在 3.8 版被加入.
這是一個 CMake 環境變數。其初始值取自呼叫的進程環境。
Add default compilation flags to be used when compiling CUDA
files.
CMake uses this environment variable value, in combination with its own
builtin default flags for the toolchain, to initialize and store the
CMAKE_CUDA_FLAGS
cache entry.
This occurs the first time a build tree is configured for language CUDA
.
For any configuration run (including the first), the environment variable
will be ignored if the CMAKE_CUDA_FLAGS
variable is already defined.
See also CMAKE_CUDA_FLAGS_INIT
.