[Lldb-commits] [lldb] r326743 - Fix the install location of LLDBWrapPython.cpp when building
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 5 13:08:43 PST 2018
Author: adrian
Date: Mon Mar 5 13:08:42 2018
New Revision: 326743
URL: http://llvm.org/viewvc/llvm-project?rev=326743&view=rev
Log:
Fix the install location of LLDBWrapPython.cpp when building
LLDB.framework to point to the build directory where it is expected by
the top-level CMakeLists.txt.
This should be a no-op in any other configurations.
rdar://problem/38005302
Modified:
lldb/trunk/scripts/CMakeLists.txt
Modified: lldb/trunk/scripts/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/CMakeLists.txt?rev=326743&r1=326742&r2=326743&view=diff
==============================================================================
--- lldb/trunk/scripts/CMakeLists.txt (original)
+++ lldb/trunk/scripts/CMakeLists.txt Mon Mar 5 13:08:42 2018
@@ -30,6 +30,8 @@ if(LLDB_BUILD_FRAMEWORK)
${LLDB_FRAMEWORK_INSTALL_DIR}/${LLDB_FRAMEWORK_RESOURCE_DIR})
endif()
+get_filename_component(CFGBLDDIR ${LLDB_WRAP_PYTHON} DIRECTORY)
+
find_package(SWIG REQUIRED)
add_custom_command(
OUTPUT ${LLDB_WRAP_PYTHON}
@@ -43,7 +45,7 @@ add_custom_command(
${framework_arg}
--srcRoot=${LLDB_SOURCE_DIR}
--targetDir=${LLDB_PYTHON_TARGET_DIR}
- --cfgBldDir=${CMAKE_CURRENT_BINARY_DIR}
+ --cfgBldDir=${CFGBLDDIR}
--prefix=${CMAKE_BINARY_DIR}
--swigExecutable=${SWIG_EXECUTABLE}
VERBATIM
More information about the lldb-commits
mailing list