mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
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 <cote2004-github@yahoo.com>
This commit is contained in:
11
libs/libftdi1/patches/101-use-findSWIG.patch
Normal file
11
libs/libftdi1/patches/101-use-findSWIG.patch
Normal file
@@ -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 )
|
||||
Reference in New Issue
Block a user