-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): return proper json objects
- Loading branch information
1 parent
bc22cca
commit 1fc5888
Showing
12 changed files
with
144 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Loads the nlohmann_json library giving the priority to the system package first, with a fallback to FetchContent. | ||
# | ||
include_guard(GLOBAL) | ||
|
||
find_package(nlohmann_json 3.11 QUIET GLOBAL) | ||
if(NOT nlohmann_json_FOUND) | ||
message(STATUS "nlohmann_json v3.11.x package not found in the system. Falling back to FetchContent.") | ||
include(FetchContent) | ||
|
||
FetchContent_Declare( | ||
json | ||
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz | ||
URL_HASH MD5=c23a33f04786d85c29fda8d16b5f0efd | ||
DOWNLOAD_EXTRACT_TIMESTAMP | ||
) | ||
FetchContent_MakeAvailable(json) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.