Fix CUDA build with Xcode 10.0, use nvrtc due to incompatible compilers.

This commit is contained in:
Brecht Van Lommel 2018-09-27 15:17:49 +02:00
parent 8f9a6b1bab
commit e8e2f51063
1 changed files with 5 additions and 0 deletions

View File

@ -289,6 +289,11 @@ if(WITH_CYCLES_CUDA_BINARIES AND (NOT WITH_CYCLES_CUBIN_COMPILER))
set(WITH_CYCLES_CUBIN_COMPILER ON)
endif()
unset(MAX_MSVC)
elseif(APPLE)
if(${XCODE_VERSION} VERSION_GREATER_EQUAL 10.0)
message(STATUS "nvcc not supported for this compiler version, using cycles_cubin_cc instead.")
set(WITH_CYCLES_CUBIN_COMPILER ON)
endif()
endif()
endif()