mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
CUDA doesn't like [[deprecated]] when applied to typedefs
So we disable deprecation support when building with `nvcc`
This commit is contained in:
parent
6e26bfca62
commit
e37eedadb1
@ -64,8 +64,8 @@
|
||||
|
||||
// C++14 and better supports [[deprecated]]
|
||||
// Except in these cases:
|
||||
// - nvcc on visual studio
|
||||
#if !(defined(VTKM_MSVC) && defined(VTKM_CUDA))
|
||||
// - nvcc
|
||||
#if !(defined(VTKM_CUDA))
|
||||
#define VTK_M_DEPRECATED_ATTRIBUTE_SUPPORTED
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user