[CMake] On Windows, require manual specification of python libs.
authorZachary Turner <zturner@google.com>
Mon, 23 Feb 2015 21:20:59 +0000 (21:20 +0000)
committerZachary Turner <zturner@google.com>
Mon, 23 Feb 2015 21:20:59 +0000 (21:20 +0000)
commitd487bb12d956480483bf6d537b56c81f47f09509
treea120bb7539c1214402276548d25f0c7be4dd4f51
parent152a172899034b5f9c34420621cd9cfa74c68efa
[CMake] On Windows, require manual specification of python libs.

Embedding python with MSVC is very finicky, for reasons having
to do with the operating system's CRT, the implementation of
python itself on Windows, and even bugs in CMake.

One side effect of this is that we cannot rely on FindPythonLibs
and FindPythonInterp CMake functions to locate the correct
version of Python.  We must instead manually specify the location
of PYTHON_LIBRARY and PYTHON_INCLUDE_DIR.

As a side effect, this fixes building LLDB in release mode by
specifying -DCMAKE_BUILD_TYPE=Release, which was previously
broken.

llvm-svn: 230262
lldb/CMakeLists.txt
lldb/source/CMakeLists.txt