<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Marc,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 22, 2018, at 10:32 AM, Marc CHEVRIER <<a href="mailto:marc.chevrier@gmail.com" class="">marc.chevrier@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">There is no specific reason.<div class="">But, starting with CMake 3.12, a new approach to manage python is available (modules FindPython2, FindPython3 and FindPython) which take care of consistency between interpreter and libraries and rely, when possible, on python-config tool.</div></div></div></blockquote><div><br class=""></div><div>Great, that sounds very much like the thing I'm looking for. Thanks!</div><br class=""><blockquote type="cite" class=""><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">Le ven. 22 juin 2018 à 11:04, Jonas Devlieghere <<a href="mailto:jdevlieghere@apple.com" class="">jdevlieghere@apple.com</a>> a écrit :<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hi everyone,<div class=""><br class=""></div><div class="">I'm having trouble with FindPythonLibs on macOS when having a version of Python installed from either via <a href="http://python.org/" target="_blank" class="">python.org</a> or Homebrew (in addition to the system one). </div><div class=""><br class=""></div><div class="">The issue is that I end up with an inconsistency between the library and the interpreter, which causes issues at runtime. </div><div class=""><br class=""></div><div class="">-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10")<span class="m_5340900120873056681Apple-tab-span" style="white-space:pre-wrap">             </span><- System Python</div><div class="">-- Found PythonInterp: /usr/local/bin/python2.7 (found version "2.7.15")        <- Homebrew Python </div><div class=""><br class=""></div><div class="">I was wondering if there's a particular reason that FindPythonLibs doesn't use the python-config binary to find both the python libraries and interpreter. </div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Jonas</div></div>-- <br class="">
<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank" class="">http://www.cmake.org/Wiki/CMake_FAQ</a><br class="">
<br class="">
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class="">
<br class="">
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/support.html</a><br class="">
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/consulting.html</a><br class="">
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/training.html</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank" class="">https://cmake.org/mailman/listinfo/cmake</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""><div class="">Jonas</div></body></html>