diff options
Diffstat (limited to 'cmake/Glob.cmake')
| -rw-r--r-- | cmake/Glob.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Glob.cmake b/cmake/Glob.cmake index 16ce80dd5..831a07496 100644 --- a/cmake/Glob.cmake +++ b/cmake/Glob.cmake @@ -45,6 +45,10 @@ function(slang_glob_sources var dir) list(FILTER files EXCLUDE REGEX "(^|/)vulkan/.*") endif() + if(NOT CMAKE_SYSTEM_NAME MATCHES "Darwin") + list(FILTER files EXCLUDE REGEX "(^|/)metal/.*") + endif() + if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows") list(FILTER files EXCLUDE REGEX "(^|/)open-gl/.*") endif() |
