<div dir="ltr">There is no specific reason.<div>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><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le ven. 22 juin 2018 à 11:04, Jonas Devlieghere <<a href="mailto:jdevlieghere@apple.com">jdevlieghere@apple.com</a>> a écrit :<br></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">Hi everyone,<div><br></div><div>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">python.org</a> or Homebrew (in addition to the system one). </div><div><br></div><div>The issue is that I end up with an inconsistency between the library and the interpreter, which causes issues at runtime. </div><div><br></div><div>-- 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>-- Found PythonInterp: /usr/local/bin/python2.7 (found version "2.7.15")        <- Homebrew Python </div><div><br></div><div>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><br></div><div>Cheers,</div><div>Jonas</div></div>-- <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/CMake_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/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.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/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>