From 0e9e0607758311f15bb1b481ee91ae12bc0fc92b Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Tue, 31 Jul 2018 17:55:22 -0300 Subject: libftdi1: Fix compilation with cmake 3.12 Applied a patch submitted upstream that fixes a compilation error with cmake >= 3.12 Error: Unable to find 'swig.swg' [...] 'python.swg' Signed-off-by: Eneas U de Queiroz --- libs/libftdi1/patches/101-use-findSWIG.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libs/libftdi1/patches/101-use-findSWIG.patch (limited to 'libs/libftdi1/patches/101-use-findSWIG.patch') diff --git a/libs/libftdi1/patches/101-use-findSWIG.patch b/libs/libftdi1/patches/101-use-findSWIG.patch new file mode 100644 index 000000000..91542ca28 --- /dev/null +++ b/libs/libftdi1/patches/101-use-findSWIG.patch @@ -0,0 +1,11 @@ +--- a/python/CMakeLists.txt ++++ b/python/CMakeLists.txt +@@ -3,7 +3,7 @@ option ( LINK_PYTHON_LIBRARY "Link again + + if ( PYTHON_BINDINGS ) + # workaround for cmake bug #0013449 +- if ( NOT DEFINED CMAKE_FIND_ROOT_PATH ) ++ if ( NOT DEFINED CMAKE_FIND_ROOT_PATH OR CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0 ) + find_package ( SWIG ) + else () + find_program ( SWIG_EXECUTABLE NAMES swig2.0 swig ) -- cgit v1.2.3