[cmake] Switch python install to use an 'install(DIRECTORY...)' cmake
authorChandler Carruth <chandlerc@gmail.com>
Mon, 16 Jun 2014 15:02:21 +0000 (15:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 16 Jun 2014 15:02:21 +0000 (15:02 +0000)
commit4c3376de0ac7860aa45dc14b87cc7adff116c713
treee7f519ae1cc9e48316c78e57a1c00da697a2d3db
parent1236ac388d931d713d980d0397fc4e6c4e7fef10
[cmake] Switch python install to use an 'install(DIRECTORY...)' cmake
command instead of a script.

In addition to cleaning things up, this allows more easy access to the
variables. In the old version, it tried to pass variables as -D flags to
cmake, but this didn't actually work. CMake drops all of those arguments
on the floor (try passing garbage through them) and just picks up the
limited subset of pre-defined macros. So, for example, this fixes the
build with LLVM_LIBDIR_SUFFIX=64 which is how I ended up here. =]

llvm-svn: 211028
lldb/scripts/CMakeLists.txt
lldb/scripts/lldb_python_module.cmake [deleted file]