FIX: Detect CUDA version correctly for setting c++17 #119984

Open
William Leeson wants to merge 2 commits from leesonw/blender-cluster:Fix_CUDA_CMakeList into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ if(WITH_CYCLES_CUDA_BINARIES)
set(cuda_flags ${cuda_flags} --ptxas-options="-v")
endif()
if(${cuda_version} GREATER_EQUAL 110)
if(${CUDA_VERSION} GREATER_EQUAL 110)
# Helps with compatibility when using recent clang host compiler.
set(cuda_flags ${cuda_flags} -std=c++17)
endif()