diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2023-12-19 00:16:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-18 15:16:14 -0800 |
| commit | 93b8f68b2e9ddc450ce63f1b6e1806960312d803 (patch) | |
| tree | d5c9c38efe1e7c86637c4be6157595b44a5c4856 /cmake | |
| parent | b6da04424aff71ddba9629c94401a9a897b152a0 (diff) | |
macos/vulkan support (#3418)
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/Glob.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/Glob.cmake b/cmake/Glob.cmake index c960e5011..16ce80dd5 100644 --- a/cmake/Glob.cmake +++ b/cmake/Glob.cmake @@ -22,6 +22,9 @@ function(slang_glob_sources var dir) "*.natstepfilter" "*.natjmc" ) + if (CMAKE_SYSTEM_NAME MATCHES "Darwin") + list(APPEND patterns "*.mm") + endif() list(TRANSFORM patterns PREPEND "${dir}/") file(GLOB_RECURSE files CONFIGURE_DEPENDS ${patterns}) @@ -38,7 +41,7 @@ function(slang_glob_sources var dir) list(FILTER files EXCLUDE REGEX "(^|/)d3d.*/.*") endif() - if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows|Linux") + if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows|Linux|Darwin") list(FILTER files EXCLUDE REGEX "(^|/)vulkan/.*") endif() |
