We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c9f2ea commit cb28427Copy full SHA for cb28427
metatomic-torch/CMakeLists.txt
@@ -193,15 +193,7 @@ FetchContent_Declare(nlohmann_json
193
URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz
194
URL_HASH SHA256=d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d
195
)
196
-if (CMAKE_VERSION VERSION_GREATER 3.18)
197
- FetchContent_MakeAvailable(nlohmann_json)
198
-else()
199
- if (NOT nlohmann_json_POPULATED)
200
- FetchContent_Populate(nlohmann_json)
201
- endif()
202
-
203
- add_subdirectory(${nlohmann_json_SOURCE_DIR} ${nlohmann_json_BINARY_DIR})
204
-endif()
+FetchContent_MakeAvailable(nlohmann_json)
205
206
target_link_libraries(metatomic_torch PRIVATE nlohmann_json::nlohmann_json)
207
0 commit comments