Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-05 14:53:08 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-05 14:53:19 +0300
commitf5b46daf521677d85f2533de7ffd4280dd50d163 (patch)
tree314dc1e67598c41dc256e8c163c6a62adc24c0ff /intern/cycles/CMakeLists.txt
parent45c11c1a1bd07cca255abdb1923e69f0242c36fd (diff)
Fix build with old CMake versions.
Diffstat (limited to 'intern/cycles/CMakeLists.txt')
-rw-r--r--intern/cycles/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt
index 8f0d838e881..6fe4546ae8c 100644
--- a/intern/cycles/CMakeLists.txt
+++ b/intern/cycles/CMakeLists.txt
@@ -308,7 +308,7 @@ if(WITH_CYCLES_CUDA_BINARIES AND (NOT WITH_CYCLES_CUBIN_COMPILER))
endif()
unset(MAX_MSVC)
elseif(APPLE)
- if(${XCODE_VERSION} VERSION_GREATER_EQUAL 10.0)
+ if(NOT (${XCODE_VERSION} VERSION_LESS 10.0))
message(STATUS "nvcc not supported for this compiler version, using cycles_cubin_cc instead.")
set(WITH_CYCLES_CUBIN_COMPILER ON)
endif()
@@ -317,7 +317,7 @@ endif()
# NVRTC gives wrong rendering result in CUDA 10.0, so we must use NVCC.
if(WITH_CYCLES_CUDA_BINARIES AND WITH_CYCLES_CUBIN_COMPILER)
- if(${CUDA_VERSION} VERSION_GREATER_EQUAL 10.0)
+ if(NOT (${CUDA_VERSION} VERSION_LESS 10.0))
message(STATUS "cycles_cubin_cc not supported for CUDA 10.0+, using nvcc instead.")
set(WITH_CYCLES_CUBIN_COMPILER OFF)
endif()