[PATCH 2/2] Disable SWIG support by default

  • From: Sander Vrijders <sander@ouroboros.rocks>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Sat, 28 Sep 2019 12:36:40 +0200

The current build fails on older Ubuntu versions. Moreover, the
generated code does not wrap flow_write and flow_read correctly.
---
 include/ouroboros/wrap/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ouroboros/wrap/CMakeLists.txt 
b/include/ouroboros/wrap/CMakeLists.txt
index bac035b..4b4af98 100644
--- a/include/ouroboros/wrap/CMakeLists.txt
+++ b/include/ouroboros/wrap/CMakeLists.txt
@@ -5,7 +5,7 @@ find_package(SWIG QUIET)
 if (NOT SWIG_FOUND)
   message(STATUS "Install SWIG to enable bindings for other languages")
 else ()
-  set(DISABLE_SWIG FALSE CACHE BOOL "Disable SWIG support")
+  set(DISABLE_SWIG TRUE CACHE BOOL "Disable SWIG support")
   if (NOT DISABLE_SWIG)
     message(STATUS "SWIG support enabled")
     include(${SWIG_USE_FILE})
@@ -69,7 +69,7 @@ else ()
         DESTINATION ${PYTHON_MODULE_PATH})
     endif ()
   else ()
-    message(STATUS "SWIG support disabled by user")
+    message(STATUS "SWIG support disabled")
   endif ()
 endif ()
 
-- 
2.22.0


Other related posts:

  • » [PATCH 2/2] Disable SWIG support by default - Sander Vrijders