aboutsummaryrefslogtreecommitdiff
path: root/libs/libftdi1/patches/101-use-findSWIG.patch
blob: 91542ca28dca85483399cdc29a89d9ed3d1ab7b5 (plain)
1
2
3
4
5
6
7
8
9
10
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 )