do not fetch nlohmann_json if it already added in main project
This commit is contained in:
parent
f4194d7e24
commit
1b3ded6276
@ -80,6 +80,7 @@ endif ()
|
|||||||
]==============================================================================================]
|
]==============================================================================================]
|
||||||
|
|
||||||
set(fetch_packages "")
|
set(fetch_packages "")
|
||||||
|
if (NOT TARGET nlohmann_json)
|
||||||
# Fetch/Find nlohmann_json
|
# Fetch/Find nlohmann_json
|
||||||
# TODO: Remove when bumping cmake >= 3.24
|
# TODO: Remove when bumping cmake >= 3.24
|
||||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
|
||||||
@ -101,6 +102,7 @@ else ()
|
|||||||
list(APPEND fetch_packages nlohmann_json)
|
list(APPEND fetch_packages nlohmann_json)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
# Handle configure flags
|
# Handle configure flags
|
||||||
if (JSON_VALIDATOR_INSTALL)
|
if (JSON_VALIDATOR_INSTALL)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user