Files
YimMenuV2/cmake/json.cmake
T
tupoy-yaandtupoy-ya 61c2eab432 fix(Clang&MinGW): Fix Clang and MinGW builds on linux. (#303)
* fix(Clang&MinGW): Fix Clang and MinGW builds on linux.

This may break building with clang for windows-gnu target, but it
probably doesn't work anyway.

* chore(FormatMoney): Cast like the other hooks.

---------

Co-authored-by: tupoy-ya <[email protected]>
2025-05-17 02:30:20 +00:00

6 lines
289 B
CMake

include(FetchContent)
message(STATUS "Setting up nlohmann::json")
FetchContent_Declare(json GIT_REPOSITORY "https://github.com/nlohmann/json/" GIT_TAG v3.12.0 GIT_SHALLOW TRUE)
option(JSON_MultipleHeaders "Disable nlohmann JSON multi header default." OFF)
FetchContent_MakeAvailable(json)