mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Upcoming versions of nvcc are adding support for `SYSTEM_INCLUDES` which contain includes that are implicitly used with `-isystem` instead of `-I`. Support of this is needed in CMake as some CUDA Toolkit releases will start to have a different include directory layout and using only the output from `INCLUDES` will be insufficient to find all headers.
13 lines
241 B
Plaintext
13 lines
241 B
Plaintext
// Only thing we care about is that these headers are found
|
|
#include <cuda.h>
|
|
#include <cuda_runtime_api.h>
|
|
#if CUDA_VERSION >= 11040
|
|
# include <nv/target>
|
|
#endif
|
|
#include <thrust/version.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
return 0;
|
|
}
|