diff --git a/CMakeLists.txt b/CMakeLists.txt index 75b543566..95941b88e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,9 +67,9 @@ cmake_policy(SET CMP0135 NEW) add_library(mlx) if(MLX_BUILD_METAL) - find_library(METAL_LIB Metal) - find_library(FOUNDATION_LIB Foundation) - find_library(QUARTZ_LIB QuartzCore) + set(METAL_LIB "-framework Metal") + set(FOUNDATION_LIB "-framework Foundation") + set(QUARTZ_LIB "-framework QuartzCore") endif() if(MLX_BUILD_METAL AND NOT METAL_LIB)