From 6bbcc453ef901b8720a42408119bdf58b9de0595 Mon Sep 17 00:00:00 2001 From: jjuang-apple Date: Mon, 16 Sep 2024 13:21:32 -0700 Subject: [PATCH] avoid using find_library to make install truly portable (#1416) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)