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
path: root/intern
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-12-07 19:46:52 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-12-07 19:46:52 +0300
commitfee4b58627dab1acac2aef19189e5aee30aadba5 (patch)
tree876fe775c8820f6d51e421a695c0c2b05fd732e5 /intern
parentc4cee2e22180e834fa578eede1468043533d4ea6 (diff)
Cycles: fix build on non-Apple systems
Skip compiling `metal.mm` unless `WITH_CYCLES_DEVICE_METAL` is enabled.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/bvh/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/cycles/bvh/CMakeLists.txt b/intern/cycles/bvh/CMakeLists.txt
index cdaa6628be2..f275419d13c 100644
--- a/intern/cycles/bvh/CMakeLists.txt
+++ b/intern/cycles/bvh/CMakeLists.txt
@@ -31,9 +31,18 @@ set(SRC
sort.cpp
split.cpp
unaligned.cpp
+)
+
+set(SRC_METAL
metal.mm
)
+if(WITH_CYCLES_DEVICE_METAL)
+ list(APPEND SRC
+ ${SRC_METAL}
+ )
+endif()
+
set(SRC_HEADERS
bvh.h
bvh2.h