Package: eccodes / 2.12.0-1

memfs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index: eccodes-2.12.0/memfs/CMakeLists.txt
===================================================================
--- eccodes-2.12.0.orig/memfs/CMakeLists.txt
+++ eccodes-2.12.0/memfs/CMakeLists.txt
@@ -19,7 +19,17 @@ if( CMAKE_C_COMPILER_ID MATCHES Cray )
 endif()
 
 if (HAVE_MEMFS)
-    ecbuild_add_library(TARGET    eccodes_memfs
-                        SOURCES   ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
-                        GENERATED ${CMAKE_CURRENT_BINARY_DIR}/memfs.c)
+  ecbuild_add_library(TARGET    eccodes_memfs
+    VERSION   0
+    CFLAGS    ${CFLAGS}
+    SOURCES   ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
+    GENERATED ${CMAKE_CURRENT_BINARY_DIR}/memfs.c)
+
+    ecbuild_add_library(TARGET    eccodes_memfs_static
+      VERSION   0
+      TYPE      STATIC
+      CFLAGS    ${CFLAGS}
+      SOURCES   ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
+      GENERATED ${CMAKE_CURRENT_BINARY_DIR}/memfs.c)
+
 endif()