From 80238a257e5cdef341cc86974fe97f83872c47a3 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 27 Jul 2021 09:07:47 +0200 Subject: [PATCH] [cpm] Use local packages for spdlog tclap and nlohmann-json if found. --- scripts/cmake/Dependencies.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index e6fa6bc6a13..7cda142a990 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -49,9 +49,9 @@ if(exprtk_ADDED) target_include_directories(exprtk SYSTEM INTERFACE ${exprtk_SOURCE_DIR}) endif() -CPMAddPackage(NAME spdlog GITHUB_REPOSITORY gabime/spdlog VERSION 1.8.2) +CPMFindPackage(NAME spdlog GITHUB_REPOSITORY gabime/spdlog VERSION 1.8.2) -CPMAddPackage( +CPMFindPackage( NAME tclap GITHUB_REPOSITORY ufz/tclap VERSION 1.2.4 @@ -272,7 +272,7 @@ if(OGS_BUILD_SWMM) endif() endif() -CPMAddPackage( +CPMFindPackage( NAME nlohmann_json VERSION 3.6.1 # the git repo is incredibly large, so we download the archived include -- GitLab