From 3bd6e547bd467fabeeaaae60e99c6a8ab1d60fab Mon Sep 17 00:00:00 2001 From: Emanuele Danovaro Date: Thu, 7 Nov 2024 14:35:45 +0000 Subject: [PATCH] conditional config fetch --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 415df32..9b4cfd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) ######################################################################################################################## ### dependencies and options -ecbuild_bundle( PROJECT share GIT "https://github.com/ecmwf/metkit-configs" BRANCH main UPDATE) +if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/share") + ecbuild_bundle( PROJECT share GIT "https://github.com/ecmwf/metkit-configs" BRANCH main UPDATE) +endif() ecbuild_add_option( FEATURE BUILD_TOOLS DEFAULT ON