<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 17, 2015 at 9:08 AM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class=""><div class="h5"><br>
</div></div>Hi,<br>
<br>
I did a quick test to see if my issue has been resolved.<br>
<br>
I have a CMakeLists.txt file with just:<br>
FIND_PACKAGE(PythonInterp REQUIRED)<br>
FIND_PACKAGE(PythonLibs ${PYTHON_VERSION_STRING} REQUIRED)<br>
<br>
<br>
And I get this error:<br>
  Could NOT find PythonLibs: Found unsuitable version "2.7.2", but required<br>
  is at least "2.7.5" (found /usr/lib/libpython2.7.dylib)<br>
<br>
<br>
The problem I have is that I get a python executable and python library from a<br>
system location, and headers from the SDK, which aren't the exact same<br>
version.<br>
<br>
//Path to a program.<br>
PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python<br>
<br>
//Path to a file.<br>
PYTHON_INCLUDE_DIR:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework/Headers<br>
<br>
//Path to a library.<br>
PYTHON_LIBRARY:FILEPATH=/usr/lib/libpython2.7.dylib<br>
<br>
<br>
Is that related to issues you are addressing here?<br></blockquote><div><br></div><div>No, the prefix check was meant to fix things for people who use homebrew</div><div>or other third-party package managers that have their own prefix.  It wasn't</div><div>meant to address the SDK.</div><div><br></div><div>However, there should be a simple fix for your problem.   Just do the</div><div>following, to allow PythonLibs to apply its own logic for matching just the</div><div>major and minor version numbers (e.g. 2.7 instead of 2.7.5):</div><div><br></div><div>FIND_PACKAGE(PythonInterp REQUIRED)<br>FIND_PACKAGE(PythonLibs REQUIRED)<br></div><div><br></div><div> - David</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div>