mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-27 19:31:16 +08:00
Disable MSVC warnings (#1680)
This commit is contained in:
parent
9df8fed046
commit
0070e360a1
@ -18,6 +18,11 @@ target_sources(
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/linalg.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/linalg.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/backend/metal/metal.h)
|
${CMAKE_CURRENT_SOURCE_DIR}/backend/metal/metal.h)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Disable some MSVC warnings to speed up compilation.
|
||||||
|
target_compile_options(mlx PUBLIC /wd4068 /wd4244 /wd4267 /wd4804)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MLX_BUILD_CPU)
|
if(MLX_BUILD_CPU)
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backend/common)
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backend/common)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user