mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-01 00:28:11 +08:00 
			
		
		
		
	avoid using find_library to make install truly portable (#1416)
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jjuang-apple
					jjuang-apple