Turn off CUDA deprecation warnings until addressed

As mentioned in issue #997, OpenSubdiv still uses CUDA functionality
that is being deprecated.  When warnings are treated as errors, this
can make OpenSubdiv fail to compile.  For now, we turn off these
deprecation warnings until we can address them.
This commit is contained in:
George ElKoura 2019-03-01 22:40:26 -08:00
parent 6e52c57a0e
commit 08c04c9a61

View File

@ -507,6 +507,7 @@ endif()
if(CUDA_FOUND)
add_definitions(
-DOPENSUBDIV_HAS_CUDA
-DCUDA_ENABLE_DEPRECATED=0
)
set(OSD_GPU TRUE)