swig: set min version to 3.0.12
Because of the keyword "using" in C++ which will replace #define SWIG
requires min version 3.0.12
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
diff --git a/.travis.yml b/.travis.yml
index 59deb61..1a519e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,7 +35,7 @@
- cmake .. && make -j2 && sudo make install
- cd ../..
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind osc; sudo dpkg -i ./swig/swig3.0_3.0.8-0ubuntu3_amd64.deb; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind osc; sudo dpkg -i ./swig/swig3.0_3.0.12-1.2_amd64.deb; sudo dpkg -i ./swig/swig_3.0.12-1_amd64.deb; fi
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc-7" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
script:
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index ee89d71..05f3025 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -10,7 +10,7 @@
# find SWIG package
if(GEN_LANGUAGE_BINDINGS)
- find_package(SWIG 3.0.0 REQUIRED)
+ find_package(SWIG 3.0.12 REQUIRED)
if(NOT SWIG_FOUND)
message(WARNING "SWIG library not found")
else()
diff --git a/swig/javascript/CMakeLists.txt b/swig/javascript/CMakeLists.txt
index e3dc23d..852c6a1 100644
--- a/swig/javascript/CMakeLists.txt
+++ b/swig/javascript/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.8.12)
find_package(Nodejs REQUIRED)
-find_package(SWIG REQUIRED)
+find_package(SWIG 3.0.12 REQUIRED)
add_compile_options(-std=gnu++11)
diff --git a/swig/swig3.0_3.0.12-1.2_amd64.deb b/swig/swig3.0_3.0.12-1.2_amd64.deb
new file mode 100644
index 0000000..6e942af
--- /dev/null
+++ b/swig/swig3.0_3.0.12-1.2_amd64.deb
Binary files differ
diff --git a/swig/swig3.0_3.0.8-0ubuntu3_amd64.deb b/swig/swig3.0_3.0.8-0ubuntu3_amd64.deb
deleted file mode 100644
index 8eb3334..0000000
--- a/swig/swig3.0_3.0.8-0ubuntu3_amd64.deb
+++ /dev/null
Binary files differ
diff --git a/swig/swig_3.0.12-1_amd64.deb b/swig/swig_3.0.12-1_amd64.deb
new file mode 100644
index 0000000..bbcdbc8
--- /dev/null
+++ b/swig/swig_3.0.12-1_amd64.deb
Binary files differ