[Lldb-commits] [lldb] r194804 - Remove the hardcoded declaration to the Python include path. Thanks to Kal Conley for the patch

Sylvestre Ledru sylvestre at debian.org
Fri Nov 15 02:32:40 PST 2013


Author: sylvestre
Date: Fri Nov 15 04:32:40 2013
New Revision: 194804

URL: http://llvm.org/viewvc/llvm-project?rev=194804&view=rev
Log:
Remove the hardcoded declaration to the Python include path. Thanks to Kal Conley for the patch

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=194804&r1=194803&r2=194804&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Fri Nov 15 04:32:40 2013
@@ -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")
 





More information about the lldb-commits mailing list