mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 17:31:16 +08:00
remove fmt dependencies from MLX install (#1417)
This commit is contained in:
parent
6bbcc453ef
commit
8d68a3e805
@ -192,7 +192,7 @@ FetchContent_Declare(
|
|||||||
GIT_TAG 10.2.1
|
GIT_TAG 10.2.1
|
||||||
EXCLUDE_FROM_ALL)
|
EXCLUDE_FROM_ALL)
|
||||||
FetchContent_MakeAvailable(fmt)
|
FetchContent_MakeAvailable(fmt)
|
||||||
target_link_libraries(mlx PRIVATE fmt::fmt-header-only)
|
target_link_libraries(mlx PRIVATE $<BUILD_INTERFACE:fmt::fmt-header-only>)
|
||||||
|
|
||||||
if(MLX_BUILD_PYTHON_BINDINGS)
|
if(MLX_BUILD_PYTHON_BINDINGS)
|
||||||
message(STATUS "Building Python bindings.")
|
message(STATUS "Building Python bindings.")
|
||||||
@ -241,7 +241,8 @@ install(
|
|||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
COMPONENT headers
|
COMPONENT headers
|
||||||
FILES_MATCHING
|
FILES_MATCHING
|
||||||
PATTERN "*.h")
|
PATTERN "*.h"
|
||||||
|
PATTERN "backend/metal/kernels.h" EXCLUDE)
|
||||||
|
|
||||||
# Install metal dependencies
|
# Install metal dependencies
|
||||||
if(MLX_BUILD_METAL)
|
if(MLX_BUILD_METAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user