Improve the set of the Python libraries during the cmake build.

Thanks to Kal Conley for the patch

llvm-svn: 194815
This commit is contained in:
Sylvestre Ledru 2013-11-15 14:15:10 +00:00
parent 9c5ae47c94
commit f0f2d58086
1 changed files with 5 additions and 4 deletions

View File

@ -139,11 +139,12 @@ set( CLANG_USED_LIBS
clangSerialization
)
set(LLDB_SYSTEM_LIBS)
if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
set( LLDB_SYSTEM_LIBS
edit
python2.7
)
list(APPEND LLDB_SYSTEM_LIBS edit)
endif()
if (NOT LLDB_DISABLE_PYTHON)
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
endif()
set( LLVM_LINK_COMPONENTS