File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -403,12 +403,8 @@ CPMAddPackage("gh:jbeder/yaml-cpp#yaml-cpp-0.6.3@0.6.3")
403
403
### [ nlohmann/json] ( https://github.com/nlohmann/json )
404
404
405
405
``` cmake
406
- CPMAddPackage(
407
- NAME nlohmann_json
408
- VERSION 3.9.1
409
- GITHUB_REPOSITORY nlohmann/json
410
- OPTIONS
411
- "JSON_BuildTests OFF"
406
+ CPMAddPackage("gh:nlohmann/json@3.9.1"
407
+ OPTIONS "JSON_BuildTests OFF"
412
408
)
413
409
```
414
410
@@ -438,8 +434,7 @@ For a working example of using CPM to download and configure the Boost C++ Libra
438
434
``` cmake
439
435
# the install option has to be explicitly set to allow installation
440
436
CPMAddPackage(
441
- GITHUB_REPOSITORY jarro2783/cxxopts
442
- VERSION 2.2.1
437
+ URI "gh:jarro2783/cxxopts@2.2.1"
443
438
OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
444
439
)
445
440
```
@@ -448,9 +443,7 @@ CPMAddPackage(
448
443
449
444
``` cmake
450
445
CPMAddPackage(
451
- NAME benchmark
452
- GITHUB_REPOSITORY google/benchmark
453
- VERSION 1.5.2
446
+ URI "gh:google/benchmark@1.5.2"
454
447
OPTIONS "BENCHMARK_ENABLE_TESTING Off"
455
448
)
456
449
@@ -464,9 +457,7 @@ endif()
464
457
465
458
``` cmake
466
459
CPMAddPackage(
467
- NAME lua
468
- GIT_REPOSITORY https://github.com/lua/lua.git
469
- VERSION 5.3.5
460
+ URI "gh:lua/lua@5.3.5"
470
461
DOWNLOAD_ONLY YES
471
462
)
472
463
You can’t perform that action at this time.
0 commit comments