mirror of
https://github.com/nlohmann/json.git
synced 2026-10-28 08:45:43 +00:00
📝 fix CPM.cmake example
This commit is contained in:
1 parent
e0a17f8475
commit
e6cafa573a
1 file changed
+6
-2
@@ -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