Some fixes for linking Python on Windows.
authorZachary Turner <zturner@google.com>
Wed, 21 Jan 2015 17:53:10 +0000 (17:53 +0000)
committerZachary Turner <zturner@google.com>
Wed, 21 Jan 2015 17:53:10 +0000 (17:53 +0000)
commitf3a7da349cddaa4c12eebd757673fa2c45a8ab47
tree6397e31deee6d92973cff35a2fe1c68a6ebfe7d1
parentfd725c060bf727f8967eef96dd6a72213fe93887
Some fixes for linking Python on Windows.

CMake FindPythonLibs will look for multiple versions of Python
including both debug and release, and build up a list such as
(debug <debugpath> optimized <optimizedpath>).  This confuses
the logic we have in CMake to copy the correct python dll to
the output directory so that it need not be in your system's PATH.

To alleviate this, we manually split this list and extract out
the debug and release versions of the python library, and copy
only the correct one to the output directory.

llvm-svn: 226679
lldb/CMakeLists.txt
lldb/scripts/CMakeLists.txt