Skip to content

Commit

Permalink
Explicitly require SWIG 3.12 or newer
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Mar 5, 2020
1 parent 894ae95 commit eb1858d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.

project(yarp-bindings)
cmake_minimum_required(VERSION 3.12)

# UseSWIG generates now standard target names.
Expand Down Expand Up @@ -43,7 +44,7 @@ if(NOT YARP_VERSION)

# Find YARP for bindings-only builds
find_package(YARP COMPONENTS ${_components} REQUIRED)
find_package(SWIG 3.0 REQUIRED)
find_package(SWIG 3.12 REQUIRED)
set(_nested_build 0)
else()
set(_nested_build 1)
Expand Down
2 changes: 1 addition & 1 deletion cmake/YarpFindDependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ set(YARP_CUSTOM_REASON_QGVCore "customized version")
find_package(QGVCore QUIET)
checkbuildandset_dependency(QGVCore Qt5 Graphviz)

set(SWIG_REQUIRED_VERSION 3.0)
set(SWIG_REQUIRED_VERSION 3.12)
find_package(SWIG ${SWIG_REQUIRED_VERSION} QUIET)
checkandset_dependency(SWIG)

Expand Down

0 comments on commit eb1858d

Please sign in to comment.