mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 06:10:04 -05:00
CUDA: CompilerId now errors out properly when passed a non CUDA compiler.
Previously we only reported an error if the compiler was a C compiler.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for CUDA/C++."
|
||||
#ifndef __CUDACC__
|
||||
# error "A C or C++ compiler has been selected for CUDA"
|
||||
#endif
|
||||
|
||||
@CMAKE_CUDA_COMPILER_ID_CONTENT@
|
||||
|
||||
Reference in New Issue
Block a user