[Lldb-commits] [lldb] r206978 - Honour DESTDIR when installing LLDB python module

Ed Maste emaste at freebsd.org
Wed Apr 23 05:59:29 PDT 2014


Author: emaste
Date: Wed Apr 23 07:59:28 2014
New Revision: 206978

URL: http://llvm.org/viewvc/llvm-project?rev=206978&view=rev
Log:
Honour DESTDIR when installing LLDB python module

Modified:
    lldb/trunk/scripts/lldb_python_module.cmake

Modified: lldb/trunk/scripts/lldb_python_module.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/lldb_python_module.cmake?rev=206978&r1=206977&r2=206978&view=diff
==============================================================================
--- lldb/trunk/scripts/lldb_python_module.cmake (original)
+++ lldb/trunk/scripts/lldb_python_module.cmake Wed Apr 23 07:59:28 2014
@@ -8,7 +8,7 @@ include(FindPythonInterp)
 SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
 
 SET(lldb_module_src ${CMAKE_CURRENT_BINARY_DIR}/lib/${PYTHON_DIRECTORY})
-SET(lldb_module_dest ${CMAKE_INSTALL_PREFIX}/lib)
+SET(lldb_module_dest "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib")
 
 MESSAGE(STATUS "Installing LLDB python module from: ${lldb_module_src} to ${lldb_module_dest}")
 FILE(COPY "${lldb_module_src}" DESTINATION "${lldb_module_dest}")





More information about the lldb-commits mailing list