Warning, /acts/thirdparty/nlohmann_json/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required( VERSION 3.11 )
0002 include( FetchContent )
0003
0004 # Tell the user what's happening.
0005 message( STATUS "Building nlohmann_json as part of the ACTS project" )
0006
0007 if(POLICY CMP0135)
0008 cmake_policy(SET CMP0135 NEW)
0009 endif()
0010
0011 # Declare where to get VecMem from.
0012 set( ACTS_NLOHMANN_JSON_GIT_TAG "v3.10.5" CACHE STRING "Version of nlohmann_json to build" )
0013 set( ACTS_NLOHMANN_JSON_SHA1 "8969f5ad1a422e01f040ff48dcae9c0e6ad0811d" CACHE STRING "SHA1 hash of the downloaded zip" )
0014 mark_as_advanced( ACTS_NLOHMANN_JSON_GIT_REPOSITORY ACTS_NLOHMANN_JSON_GIT_TAG )
0015 FetchContent_Declare( nlohmann_json
0016 URL "https://github.com/nlohmann/json/archive/refs/tags/${ACTS_NLOHMANN_JSON_GIT_TAG}.tar.gz"
0017 URL_HASH SHA1=${ACTS_NLOHMANN_JSON_SHA1})
0018
0019 # Now set up its build.
0020 set(JSON_BuildTests OFF CACHE INTERNAL "")
0021 set(JSON_Install ON CACHE INTERNAL "")
0022 FetchContent_MakeAvailable( nlohmann_json )