diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt index 8ef143c69bb..2362c26b52b 100644 --- a/intern/cycles/kernel/CMakeLists.txt +++ b/intern/cycles/kernel/CMakeLists.txt @@ -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()