[Bug 16610] New: LLDB Linux CMake build requires Python >= 2.7

Bug ID 16610
Summary LLDB Linux CMake build requires Python >= 2.7
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter daniel.malea@intel.com
Classification Unclassified

I tried to build LLDB with CMake (using the Makefile generator) on a system
with Python 2.6 installed, and noticed build problems because the "2.7" version
number is hard-coded in a few CMake files:

./CMakeLists.txt
82:include_directories(/usr/include/python2.7)

./docs/CMakeLists.txt
38:      WORKING_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/../../../lib/python2.7/site-packages

./source/CMakeLists.txt
140:  python2.7

There is probably a better way to pull in the dependency with something like:

find_package(PythonInterp REQUIRED)

Vince Harron changed bug 16610