Просмотр исходного кода

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.
David Gobbi 10 лет назад
Родитель
Сommit
ea2db3bb02
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Modules/FindPythonLibs.cmake

+ 1 - 1
Modules/FindPythonLibs.cmake

@@ -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()