We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe3cd5 commit 4929764Copy full SHA for 4929764
cmake/nlohmann-json.cmake
@@ -0,0 +1,14 @@
1
+FetchContent_Declare(
2
+ nlohmann_json
3
+ GIT_REPOSITORY https://github.com/nlohmann/json
4
+ GIT_TAG v3.12.0
5
+)
6
+
7
+FetchContent_GetProperties(nlohmann_json)
8
+if(NOT nlohmann_json_POPULATED)
9
+ FetchContent_Populate(nlohmann_json)
10
+ add_library(nlohmann_json INTERFACE)
11
+ target_include_directories(nlohmann_json INTERFACE
12
+ $<BUILD_INTERFACE:${nlohmann_json_SOURCE_DIR}/single_include>
13
+ )
14
+endif()
0 commit comments