Re: [CMake] cmake vs. Python 3.4
Yes. That did the trick. Sorry for the noise. On 23 Dec 2016 23:52, "Dan Liew" wrote: > > > 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_PACKAGE(PythonInterp 3 REQUIRED) > > still no luck. > > 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. > > > -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] cmake vs. Python 3.4
Am Samstag, 24. Dezember 2016, 12:06:10 schrieb Rolf Eike Beer: > Am Freitag, 23. Dezember 2016, 20:57:49 schrieb 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) > > The problem here is the "REQUIRED". Older CMake versions did not let "3.4" > satisfy "3" as required version, what newer versions do. However they let it > pass as a minimum version. And you don't need to add 3.4 to the list of > supported versions, if I read the log correct then 3.4 is already in the > list for CMake 3.0. Ehm, the "3" would not satisfy EXACT, but it of course satisfies REQUIRED. And it works for me, btw. Eike signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
Re: [CMake] cmake vs. Python 3.4
Am Freitag, 23. Dezember 2016, 20:57:49 schrieb 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) The problem here is the "REQUIRED". Older CMake versions did not let "3.4" satisfy "3" as required version, what newer versions do. However they let it pass as a minimum version. And you don't need to add 3.4 to the list of supported versions, if I read the log correct then 3.4 is already in the list for CMake 3.0. Eike, having done most of this version detection stuff signature.asc Description: This is a digitally signed message part. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake