Skip to content

Commit

Permalink
support older CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed May 21, 2023
1 parent b5aff96 commit df98da7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion third_party/nlohmann_json/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ FetchContent_Declare(
GIT_TAG bc889afb4c5bf1c0d8ee29ef35eaaf4c8bef8a5d
)
set(JSON_BuildTests OFF CACHE INTERNAL "")
FetchContent_MakeAvailable(nlohmann_json)
FetchContent_GetProperties(nlohmann_json)
if(NOT nlohmann_json_POPULATED)
FetchContent_Populate(nlohmann_json)
add_subdirectory(${nlohmann_json_SOURCE_DIR} ${nlohmann_json_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()

0 comments on commit df98da7

Please sign in to comment.