[CMake] cmake vs. Python 3.4

2016-12-23 Thread Lev
Hi list, I have this: FIND_PACKAGE(PythonInterp) and cmake finds this: -- Found PythonInterp: /usr/bin/python (found version "2.7.9") However, 3.4 is also installed. How can I specify to find 3.4? If I say: set(Python_ADDITIONAL_VERSIONS 3.4) FIND_PACKAGE(PythonInterp 3 REQUIRED) still no

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Alan W. Irwin
On 2016-12-23 20:57+0100 Lev wrote: Hi list, I have this: FIND_PACKAGE(PythonInterp) and cmake finds this: -- Found PythonInterp: /usr/bin/python (found version "2.7.9") However, 3.4 is also installed. How can I specify to find 3.4? If I say: set(Python_ADDITIONAL_VERSIONS 3.4) FIND_PACK

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Roger Leigh
On 23/12/16 20:53, Alan W. Irwin wrote: On 2016-12-23 20:57+0100 Lev wrote: Hi list, I have this: FIND_PACKAGE(PythonInterp) and cmake finds this: -- Found PythonInterp: /usr/bin/python (found version "2.7.9") However, 3.4 is also installed. How can I specify to find 3.4? If I say: se

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Scott Kitterman
On Friday, December 23, 2016 12:53:30 PM Alan W. Irwin wrote: > On 2016-12-23 20:57+0100 Lev wrote: > > Hi list, > > > > > > I have this: > > > > FIND_PACKAGE(PythonInterp) > > > > and cmake finds this: > > > > -- Found PythonInterp: /usr/bin/python (found version "2.7.9") > > > > However, 3.

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Lev
On Fri, 23 Dec 2016 12:53:30 -0800 (PST) "Alan W. Irwin" wrote: > Try using the update-alternatives command so that "python" becomes > symbolically linked to python-3.4 rather than python-2.7.9 > > Or uninstall python 2.7.9. Ok. Thanks both of you. Merry XMAS, Levente -- 73 de HA5OGL Op.: L

[CMake] Fwd: cmake vs. Python 3.4

2016-12-23 Thread Elizabeth A. Fischer
Ooops, this message was supposed to be "Reply All" -- Forwarded message -- From: Elizabeth A. Fischer Date: Fri, Dec 23, 2016 at 3:28 PM Subject: Re: [CMake] cmake vs. Python 3.4 To: Lev Look for a binary called `python3`, not `python`. See here: https://github.com/citibeth/i

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Elizabeth A. Fischer
> > Try using the update-alternatives command so that "python" becomes > symbolically linked to python-3.4 rather than python-2.7.9 > > Or uninstall python 2.7.9. > The standard Python distribution for versions 3 or greater installs a binary called `python3`, not `python`. That is the standard.

Re: [CMake] cmake vs. Python 3.4

2016-12-23 Thread Dan Liew
On 23 Dec 2016 7:58 pm, "Lev" wrote: Hi list, I have this: FIND_PACKAGE(PythonInterp) and cmake finds this: -- Found PythonInterp: /usr/bin/python (found version "2.7.9") However, 3.4 is also installed. How can I specify to find 3.4? If I say: set(Python_ADDITIONAL_VERSIONS 3.4) FIND_PACK