Re: [CMake] Behaviour of FindPythonInterp appears suboptimal

2014-08-22 Thread David Cole via CMake
>> I thought using FindPythonInterp would be more portable than >> simply invoking "python" directly (i.e. using $PYTHON_EXECUTABLE). > In case you want the newest version of any Python major, as in your > case, try > find_package(PythonInterp 2 REQUIRED). But you are right, this would > also succ

Re: [CMake] Behaviour of FindPythonInterp appears suboptimal

2014-08-22 Thread Rolf Eike Beer
Roger Leigh wrote: > I thought using FindPythonInterp would be more portable than > simply invoking "python" directly (i.e. using $PYTHON_EXECUTABLE). > However, this does not appear to be the case. I'd be interested to > know if this is intentional or if I'm doing something wrong. > > I've tried

[CMake] Behaviour of FindPythonInterp appears suboptimal

2014-08-22 Thread Roger Leigh
I thought using FindPythonInterp would be more portable than simply invoking "python" directly (i.e. using $PYTHON_EXECUTABLE). However, this does not appear to be the case. I'd be interested to know if this is intentional or if I'm doing something wrong. I've tried using "find_package(PythonInte