diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-11-15 10:32:40 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-11-15 10:32:40 +0000 |
commit | a25cf71894052301d1dbf0ba6d250af1c5553563 (patch) | |
tree | 2ba58931ffd4da5a7a67849d078e5c6a62efff04 /lldb | |
parent | 0b76e408b443945edb281c690b9491599a62d298 (diff) | |
download | bcm5719-llvm-a25cf71894052301d1dbf0ba6d250af1c5553563.tar.gz bcm5719-llvm-a25cf71894052301d1dbf0ba6d250af1c5553563.zip |
Remove the hardcoded declaration to the Python include path. Thanks to Kal Conley for the patch
llvm-svn: 194804
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/CMakeLists.txt b/lldb/CMakeLists.txt index 54df1b69dbf..8f48487733e 100644 --- a/lldb/CMakeLists.txt +++ b/lldb/CMakeLists.txt @@ -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") |