From e6797b03846a94a60bafa2b4d85f0cd92c4bc7a3 Mon Sep 17 00:00:00 2001 From: David Hirvonen Date: Mon, 2 Jan 2017 22:44:58 -0500 Subject: [PATCH 1/2] include(hunter_cacheable) --- cmake/projects/nlohmann-json/hunter.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/projects/nlohmann-json/hunter.cmake b/cmake/projects/nlohmann-json/hunter.cmake index a5c9e2df7b..3c6ae46d8b 100644 --- a/cmake/projects/nlohmann-json/hunter.cmake +++ b/cmake/projects/nlohmann-json/hunter.cmake @@ -1,6 +1,7 @@ # !!! DO NOT PLACE HEADER GUARDS HERE !!! include(hunter_add_version) +include(hunter_cacheable) include(hunter_cmake_args) include(hunter_download) include(hunter_pick_scheme) From 2901119b6e9f31a8aa659f54e22665c2ce0a0aa4 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Tue, 3 Jan 2017 19:51:35 +0800 Subject: [PATCH 2/2] Make 'nlohmann-json' cacheable --- cmake/projects/nlohmann-json/hunter.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/projects/nlohmann-json/hunter.cmake b/cmake/projects/nlohmann-json/hunter.cmake index 3c6ae46d8b..301cc74a88 100644 --- a/cmake/projects/nlohmann-json/hunter.cmake +++ b/cmake/projects/nlohmann-json/hunter.cmake @@ -10,7 +10,7 @@ hunter_add_version( PACKAGE_NAME nlohmann-json VERSION "1.0.0-rc1-hunter-2" URL "https://github.com/hunter-packages/json/archive/v1.0.0-rc1-hunter-2.tar.gz" - SHA1 2db824ca17678c8918575bbab982e6ae93283433 + SHA1 2db824ca17678c8918575bbab982e6ae93283433 ) hunter_add_version( @@ -23,4 +23,5 @@ hunter_add_version( hunter_cmake_args(nlohmann-json CMAKE_ARGS JSON_BUILD_TESTS=OFF) hunter_pick_scheme(DEFAULT url_sha1_cmake) +hunter_cacheable(nlohmann-json) hunter_download(PACKAGE_NAME nlohmann-json)