[Example] Disable JSON tests being included in ctest (#329)

* Disable JSON tests being included in ctest

If `CPMAddPackage` includes json without setting JSON_BuildTests off first then the target's ctest will include lots of json's tests.

* Bump example JSON version to avoid JSON tests
This commit is contained in:
Vinpasso
2022-01-12 20:29:59 +01:00
committed by GitHub
parent 262f1e0602
commit 5cb7398a24

View File

@@ -5,7 +5,7 @@ project(CPMJSONExample)
# ---- Dependencies ----
include(../../cmake/CPM.cmake)
CPMAddPackage("gh:nlohmann/json@3.9.1")
CPMAddPackage("gh:nlohmann/json@3.10.5")
# ---- Executable ----