mirror of
https://github.com/nlohmann/json.git
synced 2025-08-06 07:02:42 +03:00
📝 fix CPM.cmake example
This commit is contained in:
@@ -665,10 +665,14 @@ CPMAddPackage("gh:nlohmann/json@3.11.3")
|
|||||||
|
|
||||||
??? example
|
??? example
|
||||||
|
|
||||||
1. Create the following file:
|
1. Create the following files:
|
||||||
|
|
||||||
```cpp title="example.cpp"
|
```cpp title="example.cpp"
|
||||||
--8<-- "integration/homebrew/example.cpp"
|
--8<-- "integration/cpm/example.cpp"
|
||||||
|
```
|
||||||
|
|
||||||
|
```cmake title="CMakeLists.txt"
|
||||||
|
--8<-- "integration/cpm/CMakeLists.txt"
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Download CPM.cmake
|
2. Download CPM.cmake
|
||||||
|
Reference in New Issue
Block a user