-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent source taint, minimize json dep size
Added the OpenCV code to prevent corrupting src and polluting repo from here: https://github.com/opencv/opencv/blob/c96f48e7c91748f896e99f5bf943faf08cd98f0e/CMakeLists.txt#L12 Switched to the JSON cmake specific repo that has a lot of improvements
- Loading branch information
1 parent
48590a3
commit 585f87f
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
include(FetchContent) | ||
|
||
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz) | ||
# https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent | ||
FetchContent_Declare(json | ||
GIT_REPOSITORY https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent | ||
GIT_PROGRESS TRUE | ||
GIT_SHALLOW TRUE | ||
GIT_TAG v3.11.2) | ||
|
||
FetchContent_MakeAvailable(json) |