[lldb-dev] Python include fix patch

Kal Conley kcconley at gmail.com
Fri Nov 15 02:31:59 PST 2013


Hi LLDBers,
Can someone apply my patch to fix the hard-coded python path when building
with cmake.
Thanks!
Kal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131115/db8792f5/attachment.html>
-------------- next part --------------
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt	(revision 194790)
+++ CMakeLists.txt	(working copy)
@@ -85,7 +85,10 @@
   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-dev mailing list