<div dir="auto">Yes. That did the trick. Sorry for the noise.</div><div class="gmail_extra"><br><div class="gmail_quote">On 23 Dec 2016 23:52, "Dan Liew" <<a href="mailto:dan@su-root.co.uk">dan@su-root.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 23 Dec 2016 7:58 pm, "Lev" <<a href="mailto:leventelist@gmail.com" target="_blank">leventelist@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_-3064343353641744546quote" 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>
</blockquote><blockquote class="m_-3064343353641744546quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When you did that did you wipe the CMake cache (e.g. delete any existing binary build directory)? In many cases where CMake is asked to find a binary it will create a cache variable if it was found so that on subsequent runs of CMake it doesn't have to search for it again. You may be hitting this. </blockquote></div><br></div></div></div>
</blockquote></div></div>