Remove the hardcoded declaration to the Python include path. Thanks to Kal Conley for the patch

llvm-svn: 194804
This commit is contained in:
Sylvestre Ledru 2013-11-15 10:32:40 +00:00
parent 0b76e408b4
commit a25cf71894
1 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,10 @@ macro(add_lldb_definitions)
add_definitions( ${ARGN} )
endmacro(add_lldb_definitions)
include_directories(/usr/include/python2.7)
if (NOT LLDB_DISABLE_PYTHON)
find_package(PythonLibs REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
endif()
include_directories(../clang/include)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/../clang/include")