File: 0018-remove-swig-with-serialization.patch

package info (click to toggle)
siconos 4.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,600 kB
  • sloc: cpp: 160,976; ansic: 129,998; fortran: 33,051; python: 20,958; xml: 1,244; sh: 385; makefile: 318
file content (22 lines) | stat: -rw-r--r-- 710 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
commit 95236a083d49be71df8b35ee73e1788b01704fce
Author: Stephen Sinclair <radarsat1@gmail.com>
Date:   Thu Jan 5 18:53:36 2023 +0000

    Do not set WITH_SERIALIZATION as an option to swig.
    
    Swig 4.0 complains that it is already defined in SiconosConfig.h.

diff --git a/wrap/CMakeLists.txt b/wrap/CMakeLists.txt
index fd6865e..71715e8 100644
--- a/wrap/CMakeLists.txt
+++ b/wrap/CMakeLists.txt
@@ -43,9 +43,6 @@ if(WITH_PYTHON_WRAPPER)
   
   if(HAVE_SICONOS_IO)
     set(SWIG_DEFS "${SWIG_DEFS};-DWITH_IO")
-    if(WITH_SERIALIZATION)
-      set(SWIG_DEFS "${SWIG_DEFS};-DWITH_SERIALIZATION")
-    endif()
   endif()
   # -- Swig files --
   # Path to .i files, common to all modules and submodules.