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:
parent
c57334fae9
commit
ea2db3bb02
|
@ -154,7 +154,7 @@ foreach(_CURRENT_VERSION ${_Python_VERSIONS})
|
|||
if(Python_FRAMEWORKS AND NOT PYTHON_INCLUDE_DIR)
|
||||
foreach(dir ${Python_FRAMEWORKS})
|
||||
list(APPEND PYTHON_FRAMEWORK_INCLUDES
|
||||
${dir}/Versions/${_CURRENT_VERSION}/include/python${_CURRENT_VERSION})
|
||||
${dir}/Versions/${_CURRENT_VERSION}/include)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue