FindPythonLibs: Fix OS X framework include directory search path

We use PATH_SUFFIXES to append "python<v>" to each candidate path.  Do
not append it to the constructed list of python framework include
directories.  Otherwise the combined path will never exist.  Note that
the code doesn't yet try to match the suffixes "m" and "u" between the
executable, library, and include directory.
This commit is contained in:
David Gobbi 2015-09-14 22:48:49 -06:00 committed by Brad King
parent c57334fae9
commit ea2db3bb02
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ foreach(_CURRENT_VERSION ${_Python_VERSIONS})
if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR) if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR)
foreach(dir ${Python_FRAMEWORKS}) foreach(dir ${Python_FRAMEWORKS})
list(APPEND PYTHON_FRAMEWORK_INCLUDES list(APPEND PYTHON_FRAMEWORK_INCLUDES
${dir}/Versions/${_CURRENT_VERSION}/include/python${_CURRENT_VERSION}) ${dir}/Versions/${_CURRENT_VERSION}/include)
endforeach() endforeach()
endif() endif()