From eaeba622dd5acf3a115db15b8586dab18a80cdae Mon Sep 17 00:00:00 2001
From: Andrey Debolskiy <and.debol@gmail.com>
Date: Fri, 4 Apr 2025 06:19:55 +0300
Subject: [PATCH] updated sfx_lib fetching for climate model

---
 .idea/vcs.xml  |  1 +
 CMakeLists.txt | 10 +++-------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index f9e8820..2ca3eb1 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -3,5 +3,6 @@
   <component name="VcsDirectoryMappings">
     <mapping directory="" vcs="Git" />
     <mapping directory="$PROJECT_DIR$/cmake-build-debug/_deps/inmcm60_sfx-src" vcs="Git" />
+    <mapping directory="$PROJECT_DIR$/cmake-build-debug/_deps/sfxlib-src" vcs="Git" />
   </component>
 </project>
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97ca5e5..8346149 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,16 +76,12 @@ if (WITH_TESTS)
     # adding sfx and config-parser stuff
     #fetch sfx model
     FetchContent_Declare(
-            inmcm60_sfx
+            sfxlib
             GIT_REPOSITORY http://tesla.parallel.ru/inmcm-mirror/sfx.git
             GIT_TAG        origin/main)
-    FetchContent_MakeAvailable(inmcm60_sfx)
-    FetchContent_GetProperties(inmcm60_sfx)
+    FetchContent_MakeAvailable(sfxlib)
+    FetchContent_GetProperties(sfxlib)
 
-    if(NOT inmcm60_sfx_POPULATED)
-        FetchContent_Populate(sfx_lib)
-        add_subdirectory(${inmcm60_sfx_SOURCE_DIR} ${inmcm60_sfx_BINARY_DIR}  EXCLUDE_FROM_ALL)
-    endif()
 
     #Config parser from sfx_lib is needed
     if (WITH_RRTMG)
-- 
GitLab