The WITH_VULKAN_BACKEND/WITH_METAL_BACKEND should be included per library. However when doing this we used an none existing compile directive for WITH_METAL_BACKEND. This wasn't detected as WITH_METAL_BACKEND is also defined globally. Pull Request: https://projects.blender.org/blender/blender/pulls/109896