mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use FetchContent for nlohmann
This commit is contained in:
parent
9bd248910c
commit
8372be3a99
@ -1,14 +1,13 @@
|
|||||||
include(ExternalProject)
|
include(FetchContent)
|
||||||
|
|
||||||
ExternalProject_Add(nlohmann-json
|
FetchContent_Declare(
|
||||||
|
fmtlib
|
||||||
|
PREFIX "${CMAKE_BINARY_DIR}/deps"
|
||||||
DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/deps/nlohmann/json"
|
DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/deps/nlohmann/json"
|
||||||
DOWNLOAD_NAME json.hpp
|
DOWNLOAD_NAME json.hpp
|
||||||
DOWNLOAD_NO_EXTRACT 1
|
DOWNLOAD_NO_EXTRACT 1
|
||||||
URL https://github.com/nlohmann/json/releases/download/v3.10.2/json.hpp
|
URL https://github.com/nlohmann/json/releases/download/v3.10.2/json.hpp
|
||||||
URL_HASH SHA256=059743e48b37e41579ee3a92e82e984bfa0d2a9a2b20b175d04db8089f46f047
|
URL_HASH SHA256=059743e48b37e41579ee3a92e82e984bfa0d2a9a2b20b175d04db8089f46f047
|
||||||
CMAKE_COMMAND true
|
|
||||||
BUILD_COMMAND true
|
|
||||||
INSTALL_COMMAND true
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/deps/nlohmann)
|
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/deps/nlohmann)
|
||||||
|
Loading…
Reference in New Issue
Block a user