<div dir="ltr">Ooops, this message was supposed to be "Reply All"<div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Elizabeth A. Fischer</b> <span dir="ltr"><<a href="mailto:elizabeth.fischer@columbia.edu">elizabeth.fischer@columbia.edu</a>></span><br>Date: Fri, Dec 23, 2016 at 3:28 PM<br>Subject: Re: [CMake] cmake vs. Python 3.4<br>To: Lev <<a href="mailto:leventelist@gmail.com">leventelist@gmail.com</a>><br><br><br><div dir="ltr">Look for a binary called `python3`, not `python`.  See here:<div><br></div><div><a href="https://github.com/citibeth/icebin/blob/develop/cmake/FindPython.cmake" target="_blank">https://github.com/citibeth/<wbr>icebin/blob/develop/cmake/<wbr>FindPython.cmake</a><br></div><div><br></div><div>The `FindPython.cmake` I shared above also queries the Python system for the correct place to install things.  See here for how it's used:</div><div><br></div><div><a href="https://github.com/citibeth/icebin/blob/develop/pylib/CMakeLists.txt" target="_blank">https://github.com/citibeth/<wbr>icebin/blob/develop/pylib/<wbr>CMakeLists.txt</a><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 23, 2016 at 2:57 PM, Lev <span dir="ltr"><<a href="mailto:leventelist@gmail.com" target="_blank">leventelist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br>
<br>
<br>
I have this:<br>
<br>
FIND_PACKAGE(PythonInterp)<br>
<br>
and cmake finds this:<br>
<br>
-- Found PythonInterp: /usr/bin/python (found version "2.7.9")<br>
<br>
However, 3.4 is also installed. How can I specify to find 3.4?<br>
<br>
If I say:<br>
<br>
set(Python_ADDITIONAL_VERSIONS 3.4)<br>
FIND_PACKAGE(PythonInterp 3 REQUIRED)<br>
<br>
still no luck.<br>
<br>
This is on a Debian stable, so<br>
<br>
$ cmake --version<br>
cmake version 3.0.2<br>
<br>
<br>
Thanks,<br>
Levente<br>
<br>
--<br>
73 de HA5OGL<br>
Op.: Levente<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br>
</blockquote></div><br></div>
</div></div></div><br></div></div>