Files
CMake/Tests/Cuda/IncludePathNoToolkit/main.cpp
Robert Maynard d2be863b5e CUDA: Add include paths from nvcc SYSTEM_INCLUDES entry
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.
2025-06-05 10:53:12 -04:00

13 lines
220 B
C++

// 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()
{
return 0;
}