always use json (#1938)

This commit is contained in:
Awni Hannun
2025-03-06 15:35:56 -08:00
committed by GitHub
parent a198b2787e
commit 5245f12a46
2 changed files with 8 additions and 7 deletions

View File

@@ -232,6 +232,14 @@ if(MPI_FOUND)
endif()
endif()
message(STATUS "Downloading json")
FetchContent_Declare(
json
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
FetchContent_MakeAvailable(json)
target_include_directories(
mlx PRIVATE $<BUILD_INTERFACE:${json_SOURCE_DIR}/single_include/nlohmann>)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/mlx)
target_include_directories(