diff options
Diffstat (limited to 'intern/cycles/cmake/external_libs.cmake')
-rw-r--r-- | intern/cycles/cmake/external_libs.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake index c1244ab740b..9967a775184 100644 --- a/intern/cycles/cmake/external_libs.cmake +++ b/intern/cycles/cmake/external_libs.cmake @@ -551,4 +551,18 @@ if(NOT WITH_HIP_DYNLOAD) set(WITH_HIP_DYNLOAD ON) endif() +########################################################################### +# Metal +########################################################################### + +if(WITH_CYCLES_DEVICE_METAL) + FIND_LIBRARY(METAL_LIBRARY Metal) + if (METAL_LIBRARY) + message(STATUS "Found Metal: ${METAL_LIBRARY}") + else() + message(STATUS "Metal not found, disabling WITH_CYCLES_DEVICE_METAL") + set(WITH_CYCLES_DEVICE_METAL OFF) + endif() +endif() + unset(_cycles_lib_dir) |