diff options
-rw-r--r-- | lldb/scripts/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt index 97531b606f5..5cf645f69e4 100644 --- a/lldb/scripts/CMakeLists.txt +++ b/lldb/scripts/CMakeLists.txt @@ -16,8 +16,11 @@ if ( LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION ) DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp ) - # Install the LLDB python module on all operating systems - install(SCRIPT lldb_python_module.cmake -DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" -DCMAKE_BUILD_DIR=\"${CMAKE_BUILD_DIR}\") + # Install the LLDB python module on all operating systems (except Windows) + if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") + install(DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} + DESTINATION lib${LLVM_LIBDIR_SUFFIX}) + endif() else () add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/LLDBWrapPython.cpp @@ -42,4 +45,4 @@ else () endif () # build Python modules -add_subdirectory(Python/modules)
\ No newline at end of file +add_subdirectory(Python/modules) |