Skip to content

build(cmake): use nlohmann/json git submodule#27

Open
ShashwatAgrawal20 wants to merge 1 commit into
builder-inc:masterfrom
ShashwatAgrawal20:fix/nlohmann-json-submodule
Open

build(cmake): use nlohmann/json git submodule#27
ShashwatAgrawal20 wants to merge 1 commit into
builder-inc:masterfrom
ShashwatAgrawal20:fix/nlohmann-json-submodule

Conversation

@ShashwatAgrawal20

Copy link
Copy Markdown
Collaborator

Summary

  • Vendors nlohmann/json at v3.12.0 under backend/external/json as a git submodule (same pattern as uWebSockets).
  • CMake now uses add_subdirectory(external/json) instead of FetchContent tarball download, so configure no longer needs network access for this dependency.

Closes #23.

Test plan

  • cmake -S backend -B backend/build
  • cmake --build backend/build --target tests websocket_server
  • ./backend/build/tests — 12/12 passed

Vendors nlohmann/json at v3.12.0 under backend/external/json so builds no
longer need a network download for the dependency. Closes builder-inc#23.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use submodule for nlohmann/json

1 participant