From 8b717e8366ec2675796348e59f25cecbccf9daa7 Mon Sep 17 00:00:00 2001 From: Michael Reifenberger Date: Mon, 11 Mar 2019 16:08:34 +0000 Subject: [PATCH] Allow kicad-devel configure to find python 2.7 instead of 2.6 PR: 236335 Submitted by: george@m5p.com --- cad/kicad-devel/files/patch-CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 cad/kicad-devel/files/patch-CMakeLists.txt diff --git a/cad/kicad-devel/files/patch-CMakeLists.txt b/cad/kicad-devel/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..3fbf50421c59 --- /dev/null +++ b/cad/kicad-devel/files/patch-CMakeLists.txt @@ -0,0 +1,22 @@ +--- CMakeLists.txt.orig 2019-03-11 16:59:38.982264000 +0100 ++++ CMakeLists.txt 2019-03-11 17:00:47.354215000 +0100 +@@ -668,8 +668,8 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES ) + set( PythonLibs_FIND_VERSION 3.3 ) + else() + # force a python version < 3.0 +- set( PythonInterp_FIND_VERSION 2.6 ) +- set( PythonLibs_FIND_VERSION 2.6 ) ++ set( PythonInterp_FIND_VERSION 2.7 ) ++ set( PythonLibs_FIND_VERSION 2.7 ) + endif() + + find_package( PythonInterp ) +@@ -711,7 +711,7 @@ if( KICAD_SCRIPTING OR KICAD_SCRIPTING_MODULES ) + if( KICAD_SCRIPTING_PYTHON3 ) + find_package( PythonLibs 3.3 REQUIRED ) + else() +- find_package( PythonLibs 2.6 REQUIRED ) ++ find_package( PythonLibs 2.7 REQUIRED ) + endif() + + if( KICAD_SCRIPTING_WXPYTHON )